Author: oxygene Date: Thu Jun 24 16:43:17 2010 New Revision: 5646 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5646
Log: __i386__ and __powerpc__ are set by the compiler already. Not need to set them in lpgcc.
Signed-off-by: Patrick Georgi patrick.georgi@coresystems.de Acked-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Modified: trunk/payloads/libpayload/bin/lpgcc
Modified: trunk/payloads/libpayload/bin/lpgcc ============================================================================== --- trunk/payloads/libpayload/bin/lpgcc Thu Jun 24 16:15:49 2010 (r5645) +++ trunk/payloads/libpayload/bin/lpgcc Thu Jun 24 16:43:17 2010 (r5646) @@ -103,16 +103,14 @@ 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 -D__LIBPAYLOAD__=1 $_TARGETCFLAGS" +_CFLAGS="-m32 -nostdinc -nostdlib -I$_INCDIR -I$_ARCHINCDIR -D__LIBPAYLOAD__=1"
# Check for the -fno-stack-protector silliness