ar71xx: create firmware image for WP543 boards with 4/8/16MB of flash
[openwrt/staging/chunkeey.git] / toolchain / uClibc / patches-0.9.29 / 910-gcc_4_3_include_fixed.patch
1 --- a/Rules.mak
2 +++ b/Rules.mak
3 @@ -498,7 +498,8 @@ CFLAGS += -I$(KERNEL_HEADERS)
4
5 # Sigh, some stupid versions of gcc can't seem to cope with '-iwithprefix include'
6 #CFLAGS+=-iwithprefix include
7 -CFLAGS+=-isystem $(shell $(CC) -print-file-name=include)
8 +CC_IPREFIX:=$(shell $(CC) -print-file-name=include)
9 +CFLAGS+=-isystem $(CC_IPREFIX) -isystem $(CC_IPREFIX)-fixed
10
11 ifneq ($(DOASSERTS),y)
12 CFLAGS+=-DNDEBUG