* [PATCH] use -iwithprefix to find gcc headers
@ 2002-08-25 18:33 Christoph Hellwig
0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2002-08-25 18:33 UTC (permalink / raw)
To: marcelo; +Cc: linux-kernel
Use -iwithprefix instead of my crude gcc -print-search-dirs hack to find
the directory where gcc puts stdarg.h. Backport from 2.5.
diff -uNr -Xdontdiff -p linux-2.4.20-pre4/Makefile linux/Makefile
--- linux-2.4.20-pre4/Makefile Tue Aug 20 11:36:59 2002
+++ linux/Makefile Tue Aug 20 11:39:48 2002
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-08-25 18:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-25 18:33 [PATCH] use -iwithprefix to find gcc headers Christoph Hellwig
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.