From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N3SWP-0003kO-4p for mharc-grub-devel@gnu.org; Thu, 29 Oct 2009 06:46:25 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3SWM-0003hy-Iy for grub-devel@gnu.org; Thu, 29 Oct 2009 06:46:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3SWH-0003d7-QS for grub-devel@gnu.org; Thu, 29 Oct 2009 06:46:22 -0400 Received: from [199.232.76.173] (port=55870 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3SWH-0003cn-Ev for grub-devel@gnu.org; Thu, 29 Oct 2009 06:46:17 -0400 Received: from ey-out-1920.google.com ([74.125.78.150]:37719) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3SWH-00067R-3k for grub-devel@gnu.org; Thu, 29 Oct 2009 06:46:17 -0400 Received: by ey-out-1920.google.com with SMTP id 3so2008261eyh.34 for ; Thu, 29 Oct 2009 03:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=kVGAVRy/NcIgDJwWrtR1NUXm788gAXj9t+fz8G2N6yU=; b=rbFKPfe/yxTIRyraLnieBnhFUNH8SeFTWPYVDxHZB/OuBd2AwIjL2aR0UohDwTHExB e0lJlSc3B8aMSDSTf0lBfivDaCOq+pyMn6FI8V/tGJBlX7pf+T3WNWcZe1hdogWWJVhR XV9akRTPxkYRLTptPxkoUb4R7N5VKZ2i14U/A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=BZDYLSuJnmz8RCfmlY+DrQL+KyLSdeIdUkCmVytCuZChgHGZ8oKgYmkqvGyKHLILjO aWClYVeUCUaGILttpY8fHmEv1GP1VdqW1WHecKvd2DzR3sfjnFSaVHBTa6UXMHSp+mMF h+8WotRM10a6daZ6+CR5PjHXp55/a4gpIHc04= Received: by 10.211.154.7 with SMTP id g7mr6286061ebo.10.1256813176099; Thu, 29 Oct 2009 03:46:16 -0700 (PDT) Received: from debian.bg45.phnet (gprs13.swisscom-mobile.ch [193.247.250.13]) by mx.google.com with ESMTPS id 7sm5368817eyb.40.2009.10.29.03.46.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 29 Oct 2009 03:46:15 -0700 (PDT) Message-ID: <4AE97273.1020405@gmail.com> Date: Thu, 29 Oct 2009 11:46:11 +0100 From: Vladimir 'phcoder' Serbinenko User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: The development of GRUB 2 References: <20091026161638.GA9371@thorin> <20091028231622.GA19287@thorin> <20091029101433.GA8145@thorin> <20091029103618.GA10006@thorin> In-Reply-To: <20091029103618.GA10006@thorin> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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: Thu, 29 Oct 2009 10:46:23 -0000 Robert Millan wrote: > 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. > > Why not to create a real sysdir? For gcc grub is just another OS environment so we can use same approach as if we were cross-compiling for another OS > It's an ugly kludge, but the alternatives look even worse. > > Does someone have a better idea? > > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git