From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N9cuv-0004u4-JL for mharc-grub-devel@gnu.org; Sun, 15 Nov 2009 06:05:13 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N9cur-0004tI-6l for grub-devel@gnu.org; Sun, 15 Nov 2009 06:05:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N9cuk-0004qT-Ml for grub-devel@gnu.org; Sun, 15 Nov 2009 06:05:07 -0500 Received: from [199.232.76.173] (port=38180 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9cuk-0004q5-GX for grub-devel@gnu.org; Sun, 15 Nov 2009 06:05:02 -0500 Received: from xvm-190-8.ghst.net ([217.70.190.8]:57734 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 1N9cuj-0001jG-3t for grub-devel@gnu.org; Sun, 15 Nov 2009 06:05:01 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1N9cuh-0006JX-Ka for grub-devel@gnu.org; Sun, 15 Nov 2009 12:04:59 +0100 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1N9cug-0006hn-Fu for grub-devel@gnu.org; Sun, 15 Nov 2009 12:04:58 +0100 Date: Sun, 15 Nov 2009 12:04:58 +0100 From: Robert Millan To: The development of GNU GRUB Message-ID: <20091115110458.GA25752@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1258233405.2749.8.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 11:05:09 -0000 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? -- 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."