aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-03-05 22:31:00 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-03-05 22:31:00 -0800
commitb890569a44cf9c5afce6e5ca648dc9b589e964f9 (patch)
tree46486515da83614a11e47d769609384e4304f9b7 /Makefile
parent2bffa92fff3d9670fb9a4b62596435a137ae1b3c (diff)
downloadsyslinux.git-b890569a44cf9c5afce6e5ca648dc9b589e964f9.tar.gz
syslinux.git-b890569a44cf9c5afce6e5ca648dc9b589e964f9.tar.xz
syslinux.git-b890569a44cf9c5afce6e5ca648dc9b589e964f9.zip
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 :=
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 49bb5ecc..cde7db04 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ MAKEFLAGS = -r
TMPFILE = $(shell mktemp /tmp/gcc_ok.XXXXXX)
-gcc_ok = $(shell tmpf=$(TMPFILE); if gcc $(1) dummy.c -o $$tmpf 2>/dev/null; \
+gcc_ok = $(shell tmpf=$(TMPFILE); if $(CC) $(1) dummy.c -o $$tmpf 2>/dev/null; \
then echo '$(1)'; else echo '$(2)'; fi; rm -f $$tmpf)
comma := ,