[coreboot] libpayload: fix cross compilation (somewhat)

Stefan Reinauer stepan at coresystems.de
Thu Aug 7 17:20:43 CEST 2008


Jordan Crouse wrote:

>> Index: libpayload/bin/lpgcc
>> ===================================================================
>> --- libpayload/bin/lpgcc	(revision 3473)
>> +++ libpayload/bin/lpgcc	(working copy)
>> @@ -28,8 +28,7 @@
>>  
>>  # GCC wrapper for libpayload
>>  
>> -DEFAULT_PREFIX=/opt
>> -DEFAULT_CC=gcc
>> +DEFAULT_CC=$CC
>>     
>
> You should put a DEFAULT_CC ?= gcc after this line to account for
> CC being empty. Other then that, this looks good.

ok, done.

Next problem: How do I probe for -fno-stack-protector in the libpayload
makefile?

should we use lpgcc internally?

It doesn't work as easy as specifying it with CC. Anyone got a simple idea?

Stefan


-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866





More information about the coreboot mailing list