From b890569a44cf9c5afce6e5ca648dc9b589e964f9 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 5 Mar 2008 22:31:00 -0800 Subject: Use $(CC) in gcc_ok macro, not plain gcc Use $(CC) in gcc_ok macro, not plain gcc. This seems to work, iff the gcc_ok macro is declared with =, not := --- sample/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sample') diff --git a/sample/Makefile b/sample/Makefile index bd64e906..3ed7907e 100644 --- a/sample/Makefile +++ b/sample/Makefile @@ -16,7 +16,7 @@ TMPFILE = $(shell mktemp /tmp/gcc_ok.XXXXXX) -gcc_ok = $(shell tmpf=$(TMPFILE); if gcc $(1) -c -x c /dev/null -o $$tmpf 2>/dev/null; \ +gcc_ok = $(shell tmpf=$(TMPFILE); if $(CC) $(1) -c -x c /dev/null -o $$tmpf 2>/dev/null; \ then echo $(1); else echo $(2); fi; rm -f $$tmpf) M32 := $(call gcc_ok,-m32,) $(call gcc_ok,-ffreestanding,) $(call gcc_ok,-fno-stack-protector,) -- cgit v1.2.3