Skip to contentSkip to conversation

use -iwithprefix to find gcc headers

PATCH New Christoph Hellwig 1 participant 1 message Aug 25, 2002 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 use -iwithprefix to find gcc headers

Use -iwithprefix instead of my crude gcc -print-search-dirs hack to find the directory where gcc puts stdarg.h. Backport from 2.5.

Makefile +1 -1
diff -uNr -Xdontdiff -p linux-2.4.20-pre4/Makefile linux/Makefile
@@ -260,7 +260,7 @@ include arch/$(ARCH)/Makefile
 # 'kbuild_2_4_nostdinc :=' or -I/usr/include for kernel code and you are not UML
 # then your code is broken!  KAO.
 
-kbuild_2_4_nostdinc	:= -nostdinc $(shell $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')
+kbuild_2_4_nostdinc	:= -nostdinc -iwithprefix include
 export kbuild_2_4_nostdinc
 
 export	CPPFLAGS CFLAGS CFLAGS_KERNEL AFLAGS AFLAGS_KERNEL