summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-12-20 10:31:15 +0000
committerEric Andersen <andersen@codepoet.org>2001-12-20 10:31:15 +0000
commit16fa65662a4569bd297f4f39e48006ac2103b355 (patch)
tree1d56c77847df33041ae211dd5551e100e796ff36 /extra
parent5a65349824bb70bb75d8e05a9f879b55af32309f (diff)
Oops. I accidentally commited some experimental test code
(which was broken) yesterday. Revert that bit. -Erik
Diffstat (limited to 'extra')
-rw-r--r--extra/gcc-uClibc/gcc-uClibc.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/extra/gcc-uClibc/gcc-uClibc.c b/extra/gcc-uClibc/gcc-uClibc.c
index 3dc93b41e..152272512 100644
--- a/extra/gcc-uClibc/gcc-uClibc.c
+++ b/extra/gcc-uClibc/gcc-uClibc.c
@@ -202,25 +202,17 @@ int main(int argc, char **argv)
i = 0;
gcc_argv[i++] = GCC_BIN;
+
for ( j = 1 ; j < argc ; j++ ) {
if (strcmp("--uclibc-use-build-dir",argv[j]) == 0) {
use_build_dir = 1;
} else if (strcmp("--uclibc-use-rpath",argv[j]) == 0) {
use_rpath = 1;
- }
-#if 0
- } else {
+ }
+ else {
gcc_argv[i++] = argv[j];
}
-#endif
}
- if (linking && source_count) {
- if (use_start) {
- gcc_argv[i++] = crt0_path[use_build_dir];
- gcc_argv[i++] = "-e _start";
- }
- }
-
if (use_stdinc) {
gcc_argv[i++] = nostdinc;
@@ -228,13 +220,6 @@ int main(int argc, char **argv)
gcc_argv[i++] = GCC_INCDIR;
}
- for ( j = 1 ; j < argc ; j++ ) {
- if (strcmp("--uclibc-use-build-dir",argv[j]) != 0 &&
- strcmp("--uclibc-use-rpath",argv[j]) != 0) {
- gcc_argv[i++] = argv[j];
- }
- }
-
if (linking && source_count) {
if (!use_static_linking) {
if (dlstr && use_build_dir) {
@@ -251,12 +236,9 @@ int main(int argc, char **argv)
if (!use_build_dir) {
gcc_argv[i++] = usr_lib_path;
}
-#if 0
if (use_start) {
- gcc_argv[i++] = "-e _start";
gcc_argv[i++] = crt0_path[use_build_dir];
}
-#endif
if (use_stdlib) {
gcc_argv[i++] = nostdlib;
gcc_argv[i++] = "-lc";