projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b84b154
)
syslinux 3.63: Use $(CC) for examining compiler options
author
Maciej W. Rozycki
<macro@linux-mips.org>
Thu, 17 Apr 2008 22:46:08 +0000
(23:46 +0100)
committer
H. Peter Anvin
<hpa@zytor.com>
Fri, 18 Apr 2008 02:09:17 +0000
(22:09 -0400)
Following changes to other Makefiles use $(CC) for examining compiler
options here as well.
com32/lib/MCONFIG
patch
|
blob
|
history
diff --git
a/com32/lib/MCONFIG
b/com32/lib/MCONFIG
index
7f88055
..
e9b2941
100644
(file)
--- a/
com32/lib/MCONFIG
+++ b/
com32/lib/MCONFIG
@@
-2,7
+2,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)
GCCOPT := $(call gcc_ok,-m32,) $(call gcc_ok,-fno-stack-protector,)