summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-02-23 08:48:46 +0000
committerEric Andersen <andersen@codepoet.org>2002-02-23 08:48:46 +0000
commitcca9374b873b22590f8b273d5b6f9cc944e2c002 (patch)
tree4412f7382f19ee60c5651332e3b7a23753bef90b /extra
parentf5e2e3b27f4ebcade8d499d4b9a5d04ec5dbc5a6 (diff)
Fix a corner case which I had botched.
-Erik
Diffstat (limited to 'extra')
-rw-r--r--extra/gcc-uClibc/gcc-uClibc.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/extra/gcc-uClibc/gcc-uClibc.c b/extra/gcc-uClibc/gcc-uClibc.c
index a64d5982a..80bec890f 100644
--- a/extra/gcc-uClibc/gcc-uClibc.c
+++ b/extra/gcc-uClibc/gcc-uClibc.c
@@ -296,6 +296,8 @@ int main(int argc, char **argv)
} else if (strncmp("-v",argv[j], 2) == 0) {
continue;
} else {
+ if (verbose)
+ printf("gcc_argument[%d] = %s\n", k, argv[j]);
gcc_argument[k++] = argv[j];
gcc_argument[k] = '\0';
}
@@ -351,19 +353,16 @@ int main(int argc, char **argv)
//gcc_argv[i++] = GCC_LIB_DIR "crtn.o" ;
}
#endif
- }
- if (!linking) {
- if (use_stdinc) {
+ } else {
+ if (use_stdinc && source_count) {
gcc_argv[i++] = nostdinc;
gcc_argv[i++] = uClibc_inc[use_build_dir];
gcc_argv[i++] = GCC_INCDIR;
if( incstr )
gcc_argv[i++] = incstr;
}
- if (source_count) {
- for ( l = 0 ; l < k ; l++ ) {
- if (gcc_argument[l]) gcc_argv[i++] = gcc_argument[l];
- }
+ for ( l = 0 ; l < k ; l++ ) {
+ if (gcc_argument[l]) gcc_argv[i++] = gcc_argument[l];
}
}
gcc_argv[i++] = NULL;