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> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5642 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
ad5107e5e6
commit
815c47f7b4
|
@ -103,14 +103,16 @@ done
|
||||||
if [ "$CONFIG_TARGET_I386" = "y" ]; then
|
if [ "$CONFIG_TARGET_I386" = "y" ]; then
|
||||||
_ARCHINCDIR=$_INCDIR/i386
|
_ARCHINCDIR=$_INCDIR/i386
|
||||||
_ARCHLIBDIR=$_LIBDIR/i386
|
_ARCHLIBDIR=$_LIBDIR/i386
|
||||||
|
_TARGETCFLAGS="-D__i386__=1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CONFIG_TARGET_POWERPC" = "y" ]; then
|
if [ "$CONFIG_TARGET_POWERPC" = "y" ]; then
|
||||||
_ARCHINCDIR=$_INCDIR/powerpc
|
_ARCHINCDIR=$_INCDIR/powerpc
|
||||||
_ARCHLIBDIR=$_LIBDIR/powerpc
|
_ARCHLIBDIR=$_LIBDIR/powerpc
|
||||||
|
_TARGETCFLAGS="-D__powerpc__=1"
|
||||||
fi
|
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
|
# Check for the -fno-stack-protector silliness
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue