aboutsummaryrefslogtreecommitdiffstats
path: root/MCONFIG.embedded
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.embedded
parent67222ab2f96d1bd29566b3452f1a003d0641609a (diff)
downloadsyslinux-e93f618c0b216dd9392dc0865ad28ea53e971cdc.tar.gz
syslinux-e93f618c0b216dd9392dc0865ad28ea53e971cdc.tar.xz
syslinux-e93f618c0b216dd9392dc0865ad28ea53e971cdc.zip
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.embedded')
-rw-r--r--MCONFIG.embedded16
1 files changed, 9 insertions, 7 deletions
diff --git a/MCONFIG.embedded b/MCONFIG.embedded
index 586afc3e..b5c8f5da 100644
--- a/MCONFIG.embedded
+++ b/MCONFIG.embedded
@@ -16,14 +16,16 @@
include $(topdir)/MCONFIG
-GCCOPT := $(call gcc_ok,-m32,) \
- $(call gcc_ok,-ffreestanding,) \
- $(call gcc_ok,-fno-stack-protector,) \
- $(call gcc_ok,-falign-functions=0,-malign-functions=0) \
- $(call gcc_ok,-falign-jumps=0,-malign-jumps=0) \
- $(call gcc_ok,-falign-loops=0,-malign-loops=0) \
- -march=i386 -Os -fomit-frame-pointer -mregparm=3 -DREGPARM=3 \
+GCCOPT := $(call gcc_ok,-m32,)
+GCCOPT += $(call gcc_ok,-ffreestanding,)
+GCCOPT += $(call gcc_ok,-fno-stack-protector,)
+GCCOPT += -march=i386 -Os -fomit-frame-pointer -mregparm=3 -DREGPARM=3 \
-msoft-float
+GCCOPT += $(call gcc_ok,-falign-functions=0,-malign-functions=0)
+GCCOPT += $(call gcc_ok,-falign-jumps=0,-malign-jumps=0)
+GCCOPT += $(call gcc_ok,-falign-labels=0,-malign-labels=0)
+GCCOPT += $(call gcc_ok,-falign-loops=0,-malign-loops=0)
+GCCOPT += $(call gcc_ok,-mpreferred-stack-boundary=2,)
LIBGCC := $(shell $(CC) $(GCCOPT) --print-libgcc)