fix cross compilationor libpayload / coreinfo by honoring
the setting of CC in the payload (coreinfo) when calling make CC=i386-elf-gcc AS=i386-elf-as AR=i386-elf-ar STRIP=i386-elf-strip This still does not cope with the hardcoded -fno-stack-protector in libpayload's Makefile. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3477 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Stefan Reinauer
parent
695cff30e1
commit
c359124ef4
@@ -28,8 +28,11 @@
|
||||
|
||||
# GCC wrapper for libpayload
|
||||
|
||||
DEFAULT_PREFIX=/opt
|
||||
if [ "$CC" != "" ]; then
|
||||
DEFAULT_CC=$CC
|
||||
else
|
||||
DEFAULT_CC=gcc
|
||||
fi
|
||||
|
||||
BASE=`dirname $0`
|
||||
|
||||
@@ -37,9 +40,10 @@ BASE=`dirname $0`
|
||||
. $BASE/lp.functions
|
||||
|
||||
trygccoption() {
|
||||
$DEFAULT_CC $1 -S -xc /dev/null -o .$$.tmp > /dev/null
|
||||
$DEFAULT_CC $1 -S -xc /dev/null -o .$$.tmp &> /dev/null
|
||||
RET=$?
|
||||
rm -f .$$.tmp
|
||||
return $?
|
||||
return $RET
|
||||
}
|
||||
|
||||
DEBUGME=0
|
||||
|
Reference in New Issue
Block a user