瀏覽代碼

- use -print-file-name

Bernhard Reutner-Fischer 17 年之前
父節點
當前提交
18f27be358
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Rules.mak

+ 3 - 1
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