This is required because of the multi arch code that recently went in.
Stefan
--
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: [email protected] • http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
Tell lpgcc about the target architecture directory. This slipped through since
FILO does not use lpgcc (yet)
Signed-off-by: Stefan Reinauer <[email protected]>
Index: bin/lpgcc
===================================================================
--- bin/lpgcc (.../branches/upstream/libpayload)
+++ bin/lpgcc (.../trunk/libpayload)
@@ -48,6 +48,9 @@
# This will set the _LIBDIR and _INCDIR variables used below
. $BASE/lp.functions
+# include libpayload config
+. $BASE/../libpayload.config
+
_LDSCRIPT="-Wl,-T,$_LIBDIR/libpayload.ldscript"
trygccoption() {
@@ -97,8 +100,16 @@
shift
done
-_CFLAGS="-m32 -nostdinc -nostdlib -I$_INCDIR"
+if [ "$CONFIG_TARGET_I386" = "y" ]; then
+ _ARCHINCDIR=$_INCDIR/i386
+fi
+if [ "$CONFIG_TARGET_POWERPC" = "y" ]; then
+ _ARCHINCDIR=$_INCDIR/powerpc
+fi
+
+_CFLAGS="-m32 -nostdinc -nostdlib -I$_INCDIR -I$_ARCHINCDIR"
+
# Check for the -fno-stack-protector silliness
trygccoption -fno-stack-protector
--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot