From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N9eRd-0001Hy-Tp for mharc-grub-devel@gnu.org; Sun, 15 Nov 2009 07:43:05 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N9eRb-0001Gx-HF for grub-devel@gnu.org; Sun, 15 Nov 2009 07:43:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N9eRW-0001Ej-PZ for grub-devel@gnu.org; Sun, 15 Nov 2009 07:43:03 -0500 Received: from [199.232.76.173] (port=54605 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9eRW-0001Eg-Kt for grub-devel@gnu.org; Sun, 15 Nov 2009 07:42:58 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:57789) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N9eRW-0000eU-1o for grub-devel@gnu.org; Sun, 15 Nov 2009 07:42:58 -0500 Received: from [85.180.43.63] (e180043063.adsl.alicedsl.de [85.180.43.63]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0M1QSH-1MGBJJ3xrV-00tIci; Sun, 15 Nov 2009 13:42:57 +0100 From: Felix Zielcke To: The development of GNU GRUB In-Reply-To: <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> <20091115123207.GA26645@thorin> Content-Type: text/plain; charset="UTF-8" Date: Sun, 15 Nov 2009 13:42:56 +0100 Message-ID: <1258288976.2822.13.camel@fz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX19YnWoUotcFXCwj7yn91RPr5uj1kUG3/01pU7z 1Slg+5l8UJMDKjH/oP8F6RYyxga/QOyB3YjZVyoB3ePNL16/1d f4wasZGy+lRbl4CJyTNgoz5knVoF8qJ X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:43:04 -0000 Am Sonntag, den 15.11.2009, 13:32 +0100 schrieb Robert Millan: > 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. You're welcome. I commited this now except that I used now $TARGET_CC. Makes more sense inside TARGET_CPPFLAGS. -- Felix Zielcke Proud Debian Maintainer and GNU GRUB developer