summaryrefslogtreecommitdiff
path: root/toolchain/uClibc/patches/910-gcc_4_3_include_fixed.patch
blob: fd80c217f90e8f3ffc9329a22e03ca941e8fe7d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/Rules.mak
+++ b/Rules.mak
@@ -498,7 +498,8 @@ CFLAGS += -I$(KERNEL_HEADERS)
 
 # Sigh, some stupid versions of gcc can't seem to cope with '-iwithprefix include'
 #CFLAGS+=-iwithprefix include
-CFLAGS+=-isystem $(shell $(CC) -print-file-name=include)
+CC_IPREFIX:=$(shell $(CC) -print-file-name=include)
+CFLAGS+=-isystem $(CC_IPREFIX) -isystem $(CC_IPREFIX)-fixed
 
 ifneq ($(DOASSERTS),y)
 CFLAGS+=-DNDEBUG