summaryrefslogtreecommitdiff
path: root/MCONFIG
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-06-24 15:55:43 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-06-24 15:55:43 -0700
commite93f618c0b216dd9392dc0865ad28ea53e971cdc (patch)
tree8ca260c37babfe93598e0e329063be308034d81f /MCONFIG
parent67222ab2f96d1bd29566b3452f1a003d0641609a (diff)
downloadsyslinux-e93f618c0b216dd9392dc0865ad28ea53e971cdc.tar.gz
MCONFIG: build GCCOPT one step at a time, don't align stack
Some gcc options are only valid together with other gcc options, so build GCCOPT one bit at a time, and change gcc_ok to take already existing GCCOPT flags into account. This lets us build with -mpreferred-stack-boundary=2, which is only valid on 32 bits and therefore with -m32. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'MCONFIG')
-rw-r--r--MCONFIG3
1 files changed, 2 insertions, 1 deletions
diff --git a/MCONFIG b/MCONFIG
index b98c5723..894bf235 100644
--- a/MCONFIG
+++ b/MCONFIG
@@ -41,7 +41,8 @@ CHMOD = chmod
CC = gcc
gcc_ok = $(shell tmpf=gcc_ok.$$$$.tmp; \
- if $(CC) $(1) -c $(topdir)/dummy.c -o $$tmpf 2>/dev/null ; \
+ if $(CC) $(GCCOPT) $(1) -c $(topdir)/dummy.c \
+ -o $$tmpf 2>/dev/null ; \
then echo '$(1)'; else echo '$(2)'; fi; \
rm -f $$tmpf)