summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-23 21:57:45 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-23 21:57:45 +0000
commit18f27be3580fcbd81c5b8f17a43648e8d1fd039e (patch)
tree9b8222cbfe1254d351fad432f17c6314076c5d4b /Rules.mak
parent5e25c1061c9ad6518186cc1fcfffc18d3668720d (diff)
- use -print-file-name
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak4
1 files changed, 3 insertions, 1 deletions
diff --git a/Rules.mak b/Rules.mak
index 8d1853cf5..b68ae26c9 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -598,7 +598,9 @@ else
endif
CFLAGS += -I$(KERNEL_HEADERS)
-CFLAGS += -iwithprefix include-fixed -iwithprefix include
+#CFLAGS += -iwithprefix include-fixed -iwithprefix include
+CC_IPREFIX:=$(shell $(CC) --print-file-name=include)
+CFLAGS += -I$(dir $(CC_IPREFIX))/include-fixed -I$(CC_IPREFIX)
ifneq ($(DOASSERTS),y)
CFLAGS+=-DNDEBUG