From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N9d2U-0007QK-Di for mharc-grub-devel@gnu.org; Sun, 15 Nov 2009 06:13:02 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N9d2R-0007PI-JM for grub-devel@gnu.org; Sun, 15 Nov 2009 06:12:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N9d2M-0007Mn-8C for grub-devel@gnu.org; Sun, 15 Nov 2009 06:12:58 -0500 Received: from [199.232.76.173] (port=40301 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9d2L-0007MN-RX for grub-devel@gnu.org; Sun, 15 Nov 2009 06:12:54 -0500 Received: from xvm-190-8.ghst.net ([217.70.190.8]:47066 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 1N9d2L-0002gQ-Dd for grub-devel@gnu.org; Sun, 15 Nov 2009 06:12:53 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1N9d2K-0006Jz-3c for grub-devel@gnu.org; Sun, 15 Nov 2009 12:12:52 +0100 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1N9d2J-0006k1-JO for grub-devel@gnu.org; Sun, 15 Nov 2009 12:12:51 +0100 Date: Sun, 15 Nov 2009 12:12:51 +0100 From: Robert Millan To: The development of GNU GRUB Message-ID: <20091115111251.GC25752@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091115110458.GA25752@thorin> 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 11:13:00 -0000 On Sun, Nov 15, 2009 at 12:04:58PM +0100, Robert Millan wrote: > On Sat, Nov 14, 2009 at 10:16:45PM +0100, Felix Zielcke wrote: > > Am Mittwoch, den 04.11.2009, 11:48 +0100 schrieb Felix Zielcke: > > > > > > Thanks to the hint from rubisher I looked now at Linux Makefiles. > > > They use this: > > > > > > NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) > > > > > > # ls $(gcc-4.4 -print-file-name=include)/stdarg.h > > > /usr/lib/gcc/x86_64-linux-gnu/4.4.2/include/stdarg.h > > > > > > > Robert? > > IMO this makes at least more sense then what we have now > > and I just tested this now with and without a seperate build directory > > with experimental branch and it works > > TARGET_CPPFLAGS = @TARGET_CPPFLAGS@ -nostdinc -isystem $(shell $(CC) > > -print-file-name=include) -I$(srcdir)/include -I$(builddir) > > -I$(builddir)/include -Wall -W > > What's the advantage? Ah, I remember. There was a problem with stddef.h right? So you propose something like this: -TARGET_CPPFLAGS = @TARGET_CPPFLAGS@ -isystem=$(srcdir)/include -I$(srcdir)/include -I$(builddir) -I$(builddir)/include \ +TARGET_CPPFLAGS = @TARGET_CPPFLAGS@ -isystem=$(shell $(CC) -print-file-name=include) -I$(srcdir)/include -I$(builddir) -I$(builddir)/include \ ? -- 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."