summaryrefslogtreecommitdiff
path: root/extra/gcc-uClibc/gcc-uClibc.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-02-23 13:27:35 +0000
committerEric Andersen <andersen@codepoet.org>2002-02-23 13:27:35 +0000
commit70b1841fb59ddade872aafcbaff416dd4ebd9a6d (patch)
treead964465565d221641cac009e83046ef462d49ff /extra/gcc-uClibc/gcc-uClibc.c
parent8ff9477238020917610c48f790f522b48fe5a169 (diff)
Fix the compiler wrapper yet more...
Diffstat (limited to 'extra/gcc-uClibc/gcc-uClibc.c')
-rw-r--r--extra/gcc-uClibc/gcc-uClibc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/extra/gcc-uClibc/gcc-uClibc.c b/extra/gcc-uClibc/gcc-uClibc.c
index 80bec890f..dfe6216c2 100644
--- a/extra/gcc-uClibc/gcc-uClibc.c
+++ b/extra/gcc-uClibc/gcc-uClibc.c
@@ -172,8 +172,8 @@ int main(int argc, char **argv)
xstrcat(&(rpath[0]), "-Wl,-rpath,", devprefix, "/lib", NULL);
xstrcat(&(rpath[1]), "-Wl,-rpath,", builddir, "/lib", NULL);
- xstrcat(&(uClibc_inc[0]), "-I", devprefix, "/include/", NULL);
- xstrcat(&(uClibc_inc[1]), "-I", builddir, "/include/", NULL);
+ xstrcat(&(uClibc_inc[0]), "-isystem", devprefix, "/include/", NULL);
+ xstrcat(&(uClibc_inc[1]), "-isystem", builddir, "/include/", NULL);
xstrcat(&(crt0_path[0]), devprefix, "/lib/crt0.o", NULL);
xstrcat(&(crt0_path[1]), builddir, "/lib/crt0.o", NULL);
@@ -296,8 +296,6 @@ 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';
}
@@ -357,7 +355,7 @@ int main(int argc, char **argv)
if (use_stdinc && source_count) {
gcc_argv[i++] = nostdinc;
gcc_argv[i++] = uClibc_inc[use_build_dir];
- gcc_argv[i++] = GCC_INCDIR;
+ gcc_argv[i++] = "-isystem" GCC_INCDIR;
if( incstr )
gcc_argv[i++] = incstr;
}