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.