From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N5dPc-0003wn-Ts for mharc-grub-devel@gnu.org; Wed, 04 Nov 2009 05:48:24 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5dPa-0003vo-NH for grub-devel@gnu.org; Wed, 04 Nov 2009 05:48:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5dPV-0003t1-Nq for grub-devel@gnu.org; Wed, 04 Nov 2009 05:48:21 -0500 Received: from [199.232.76.173] (port=36192 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5dPV-0003sq-Fz for grub-devel@gnu.org; Wed, 04 Nov 2009 05:48:17 -0500 Received: from moutng.kundenserver.de ([212.227.17.9]:65377) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N5dPU-0001xd-Rf for grub-devel@gnu.org; Wed, 04 Nov 2009 05:48:17 -0500 Received: from [85.180.49.197] (e180049197.adsl.alicedsl.de [85.180.49.197]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0LqnUA-1MShlF1ln0-00eEnq; Wed, 04 Nov 2009 11:48:15 +0100 From: Felix Zielcke To: The development of GRUB 2 In-Reply-To: <20091029103618.GA10006@thorin> References: <20091026161638.GA9371@thorin> <20091028231622.GA19287@thorin> <20091029101433.GA8145@thorin> <20091029103618.GA10006@thorin> Content-Type: text/plain; charset="UTF-8" Date: Wed, 04 Nov 2009 11:48:14 +0100 Message-ID: <1257331694.5000.34.camel@fz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/DuXMZlW4DaOL4+tNAEkIFkKMnmeeVMmKETqH q4IVTLPMC5ymJylT04m/NBkJNnFoj7Dkn/lEEcW7DPNMTK2RRH DMy7bu77y6p3Iga4kZVhnFRvgWue9jI 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 GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2009 10:48:22 -0000 Am Donnerstag, den 29.10.2009, 11:36 +0100 schrieb Robert Millan: > On Thu, Oct 29, 2009 at 11:14:33AM +0100, Robert Millan wrote: > > > > It appears that -nostdinc also excludes GCC internal header directory (for > > e.g. stdarg.h), which I didn't expect. > > > > Does someone know a clean way to resolve this? A quick check at GCC > > command-line options didn't reveal a way to explicitly include that > > directory afterwards without knowing its path. > > > > I.e. something similar to `gcc -print-file-name=libgcc.a` > > Maybe with -isysroot=`pwd`/dummy instead of -nostdinc. > > It's an ugly kludge, but the alternatives look even worse. > > Does someone have a better idea? > 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 -- Felix Zielcke Proud Debian Maintainer and GNU GRUB developer