linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to do -nostdinc?
@ 2002-12-15 12:06 Keith Owens
  2002-12-15 13:47 ` Marius Gedminas
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Keith Owens @ 2002-12-15 12:06 UTC (permalink / raw)
  To: linux-kernel

There are two ways of setting the -nostdinc flag in the kernel Makefile :-

(1) -nostdinc $(shell $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')
(2) -nostdinc -iwithprefix include

The first format breaks with non-English locales, however the fix is trivial.

(1a) -nostdinc $(shell LANG=C $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')

The second format is simpler but there have been reports that it does
not work with some versions of gcc.  I have been unable to find a
definitive statement about which versions of gcc fail and whether the
problem has been fixed.  Anybody care to provide a definitive
statement?

If kernel build cannot rely on gcc working with -nostdinc -iwithprefix include
then we need to convert to (1a).


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-12-16 23:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-15 12:06 How to do -nostdinc? Keith Owens
2002-12-15 13:47 ` Marius Gedminas
2002-12-15 15:11 ` Russell King
2002-12-16  0:17 ` Steffen Persvold
2002-12-16 18:29 ` Sam Ravnborg
2002-12-16 21:26   ` Keith Owens
2002-12-16 22:44     ` J.A. Magallon
2002-12-16 23:16     ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).