On Thu, Oct 29, 2009 at 11:46:11AM +0100, Vladimir 'phcoder' Serbinenko wrote: > 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
Good point. Actually, I realized that we already have one (include/grub/). -- 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."
2009-10-30 Robert Millan <rmh.g...@aybabtu.com> * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with `-isystem=$(srcdir)/include'. Index: Makefile.in =================================================================== --- Makefile.in (revision 2672) +++ Makefile.in (working copy) @@ -75,7 +75,7 @@ TARGET_ASFLAGS = @TARGET_ASFLAGS@ TARGET_MODULE_FORMAT = @TARGET_MODULE_FORMAT@ TARGET_APPLE_CC = @TARGET_APPLE_CC@ OBJCONV = @OBJCONV@ -TARGET_CPPFLAGS = @TARGET_CPPFLAGS@ -nostdinc -I$(builddir) -I$(builddir)/include -I$(srcdir)/include \ +TARGET_CPPFLAGS = @TARGET_CPPFLAGS@ -isystem=$(srcdir)/include -I$(builddir) -I$(builddir)/include \ -Wall -W TARGET_LDFLAGS = @TARGET_LDFLAGS@ TARGET_IMG_LDSCRIPT = @TARGET_IMG_LDSCRIPT@
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel