[coreboot] libpayload: fix cross compilation (somewhat)

Uwe Hermann uwe at hermann-uwe.de
Fri Aug 8 10:05:22 CEST 2008


On Thu, Aug 07, 2008 at 05:31:01PM +0200, Stefan Reinauer wrote:
> > Use the logic from buildrom:
> >
> > try-run= $(shell set -e; \
> > TMP=".$$$$.tmp"; \
> > if ($(1)) > /dev/null 2>&1; \
> > then echo "$(2)"; \
> > else echo "$(3)"; \
> > fi; rm -rf "$$TMP")
> >
> > cc-option= $(call
> > try-run,\
> > $(CC) $(1) -S
> > -xc /dev/null
> > -o "$$TMP",
> > $(1), $(2))
> >
> > STACKPROTECT += $(call cc-option, -fno-stack-protector,)
> >   
> 
> Cool, works and checked in...

r3478.


Uwe.
-- 
http://www.hermann-uwe.de  | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org




More information about the coreboot mailing list