diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-06-24 15:55:43 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-06-24 15:55:43 -0700 |
commit | e93f618c0b216dd9392dc0865ad28ea53e971cdc (patch) | |
tree | 8ca260c37babfe93598e0e329063be308034d81f /MCONFIG | |
parent | 67222ab2f96d1bd29566b3452f1a003d0641609a (diff) | |
download | syslinux-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-- | MCONFIG | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |