mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Keith Owens <kaos@ocs.com.au>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How to do -nostdinc?
Date: Tue, 17 Dec 2002 08:26:33 +1100	[thread overview]
Message-ID: <20218.1040073993@ocs3.intra.ocs.com.au> (raw)
In-Reply-To: Your message of "Mon, 16 Dec 2002 19:29:19 BST." <20021216182919.GA1607@mars.ravnborg.org>

On Mon, 16 Dec 2002 19:29:19 +0100, 
Sam Ravnborg <sam@ravnborg.org> wrote:
>On Sun, Dec 15, 2002 at 11:06:41PM +1100, Keith Owens wrote:
>> 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')
>> 
>Hi Keith.
>
>Based on the comments received, solution (2) seems to be OK.
>Do you agree?

Does gcc still mark -iwithprefix as deprecated?  If it does then do not
rely on it and use (1a).  If gcc will support -iwithprefix then use (2).


  reply	other threads:[~2002-12-16 21:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-15 12:06 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 [this message]
2002-12-16 22:44     ` J.A. Magallon
2002-12-16 23:16     ` H. Peter Anvin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20218.1040073993@ocs3.intra.ocs.com.au \
    --to=kaos@ocs.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®