summaryrefslogtreecommitdiff
path: root/extra
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
parent8ff9477238020917610c48f790f522b48fe5a169 (diff)
Fix the compiler wrapper yet more...
Diffstat (limited to 'extra')
-rw-r--r--extra/gcc-uClibc/Makefile2
-rw-r--r--extra/gcc-uClibc/gcc-uClibc.c8
2 files changed, 4 insertions, 6 deletions
diff --git a/extra/gcc-uClibc/Makefile b/extra/gcc-uClibc/Makefile
index 552e63cea..04a68ee82 100644
--- a/extra/gcc-uClibc/Makefile
+++ b/extra/gcc-uClibc/Makefile
@@ -24,7 +24,7 @@ gcc-uClibc.h: $(TOPDIR)/Config
@echo "#define GCC_BIN " \"$(GCC_BIN)\" >> gcc-uClibc.h
@echo "#define GCC_LIB " \"$(GCC_LIB)\" >> gcc-uClibc.h
@echo "#define GCC_LIB_DIR " \"$(GCC_LIB_DIR)\" >> gcc-uClibc.h
- @echo "#define GCC_INCDIR " \"-I$(GCCINCDIR)\" >> gcc-uClibc.h
+ @echo "#define GCC_INCDIR " \"$(GCCINCDIR)\" >> gcc-uClibc.h
@echo "#define TARGET_ARCH " \"$(TARGET_ARCH)\" >> gcc-uClibc.h
@echo "#define DYNAMIC_LINKER " \"$(DYNAMIC_LINKER)\" >> gcc-uClibc.h
@echo "#define BUILD_DYNAMIC_LINKER " \"$(UCLIBC_DIR)/lib/$(UCLIBC_LDSO)\" >> gcc-uClibc.h
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;
}