OSDN Git Service

use -isystem with gcc paths
authorMike Frysinger <vapier@gentoo.org>
Sun, 5 Jul 2009 20:50:27 +0000 (16:50 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 6 Jul 2009 00:27:16 +0000 (20:27 -0400)
Use -isystem to include gcc header paths rather than -I as these are system
paths, not uClibc specific paths.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Rules.mak

index d831bd2..4a8dbc1 100644 (file)
--- a/Rules.mak
+++ b/Rules.mak
@@ -663,7 +663,7 @@ CFLAGS += -I$(KERNEL_HEADERS)
 
 #CFLAGS += -iwithprefix include-fixed -iwithprefix include
 CC_IPREFIX := $(shell $(CC) --print-file-name=include)
-CC_INC := -I$(dir $(CC_IPREFIX))include-fixed -I$(CC_IPREFIX)
+CC_INC := -isystem $(dir $(CC_IPREFIX))include-fixed -isystem $(CC_IPREFIX)
 CFLAGS += $(CC_INC)
 
 ifneq ($(DOASSERTS),y)