summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
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";