Author: oxygene Date: Thu Jun 24 13:14:51 2010 New Revision: 5642 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5642
Log: Add __LIBPAYLOAD__ and __i386__/__powerpc__ symbols to lpgcc's build context.
Signed-off-by: Patrick Georgi patrick.georgi@coresystems.de Acked-by: Stefan Reinauer stepan@coresystems.de Acked-by: Peter Stuge peter@stuge.se
Modified: trunk/payloads/libpayload/bin/lpgcc
Modified: trunk/payloads/libpayload/bin/lpgcc ============================================================================== --- trunk/payloads/libpayload/bin/lpgcc Tue Jun 22 22:36:52 2010 (r5641) +++ trunk/payloads/libpayload/bin/lpgcc Thu Jun 24 13:14:51 2010 (r5642) @@ -103,14 +103,16 @@ if [ "$CONFIG_TARGET_I386" = "y" ]; then _ARCHINCDIR=$_INCDIR/i386 _ARCHLIBDIR=$_LIBDIR/i386 + _TARGETCFLAGS="-D__i386__=1" fi
if [ "$CONFIG_TARGET_POWERPC" = "y" ]; then _ARCHINCDIR=$_INCDIR/powerpc _ARCHLIBDIR=$_LIBDIR/powerpc + _TARGETCFLAGS="-D__powerpc__=1" fi
-_CFLAGS="-m32 -nostdinc -nostdlib -I$_INCDIR -I$_ARCHINCDIR" +_CFLAGS="-m32 -nostdinc -nostdlib -I$_INCDIR -I$_ARCHINCDIR -D__LIBPAYLOAD__=1 $_TARGETCFLAGS"
# Check for the -fno-stack-protector silliness