From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N9eHB-0006Ge-HS for mharc-grub-devel@gnu.org; Sun, 15 Nov 2009 07:32:17 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N9eH9-0006GR-6Y for grub-devel@gnu.org; Sun, 15 Nov 2009 07:32:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N9eH4-0006FT-CO for grub-devel@gnu.org; Sun, 15 Nov 2009 07:32:14 -0500 Received: from [199.232.76.173] (port=44390 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9eH4-0006FQ-78 for grub-devel@gnu.org; Sun, 15 Nov 2009 07:32:10 -0500 Received: from xvm-190-8.ghst.net ([217.70.190.8]:55444 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N9eH3-0007lJ-Sn for grub-devel@gnu.org; Sun, 15 Nov 2009 07:32:10 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1N9eH2-0006TL-3T for grub-devel@gnu.org; Sun, 15 Nov 2009 13:32:08 +0100 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1N9eH1-0006vx-9j for grub-devel@gnu.org; Sun, 15 Nov 2009 13:32:07 +0100 Date: Sun, 15 Nov 2009 13:32:07 +0100 From: Robert Millan To: The development of GNU GRUB Message-ID: <20091115123207.GA26645@thorin> References: <20091026161638.GA9371@thorin> <20091028231622.GA19287@thorin> <20091029101433.GA8145@thorin> <20091029103618.GA10006@thorin> <1257331694.5000.34.camel@fz.local> <1258233405.2749.8.camel@fz.local> <20091115110458.GA25752@thorin> <1258283870.2822.8.camel@fz.local> <20091115113530.GA26217@thorin> <1258285839.2822.12.camel@fz.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1258285839.2822.12.camel@fz.local> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [PATCH] Add -nostdinc to TARGET_CFLAGS X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2009 12:32:15 -0000 On Sun, Nov 15, 2009 at 12:50:39PM +0100, Felix Zielcke wrote: > > > $ srcdir=$PWD builddir=$PWD gcc -isystem=$srcdir/include -I$srcdir/include -I$builddir -I$builddir/include test.c -o test && ls test > > > test > > > $ srcdir=$PWD builddir=$PWD gcc -nostdinc -isystem $(gcc -print-file-name=include) -I$srcdir/include -I$builddir -I$builddir/include test.c > > > test.c:2:20: error: stdint.h: No such file or directory > > > > We used -isystem as a way of excluding system headers but not gcc headers. > > With the -print-file-name trick this seems to be no longer necessary, right? > > > > So why not "-nostdinc -I$(gcc -print-file-name=include)" instead? > > I think we should use -isystem for the gcc internal header files not -I, > but I just tested experimental branch with -I instead of -isystem and > also compiles cleanly (except the usual grub.texi warnings) Seems fine. Thanks for investigating this. -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."