aboutsummaryrefslogtreecommitdiffstats
path: root/MCONFIG.embedded
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-28 18:52:14 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-28 18:52:14 -0800
commit3d360c8a2a20eb55bcc4d3462c5c032fe0831865 (patch)
tree73bd056dd7ca4a6aa2210e12542b8a1f32c9e6ac /MCONFIG.embedded
parente19346b4cadd51fa16975564d0b459a4cd7e0571 (diff)
downloadsyslinux-3d360c8a2a20eb55bcc4d3462c5c032fe0831865.tar.gz
syslinux-3d360c8a2a20eb55bcc4d3462c5c032fe0831865.tar.xz
syslinux-3d360c8a2a20eb55bcc4d3462c5c032fe0831865.zip
MCONFIG.embedded: make sure to honor options in MCONFIG.local
In particular, make sure we can honor debug options in MCONFIG.local. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'MCONFIG.embedded')
-rw-r--r--MCONFIG.embedded6
1 files changed, 4 insertions, 2 deletions
diff --git a/MCONFIG.embedded b/MCONFIG.embedded
index e8879fc5..1369265c 100644
--- a/MCONFIG.embedded
+++ b/MCONFIG.embedded
@@ -35,8 +35,10 @@ GCCOPT += $(call gcc_ok,-mpreferred-stack-boundary=2,)
LIBGCC := $(shell $(CC) $(GCCOPT) --print-libgcc)
LD += -m elf_i386
-CFLAGS = $(GCCOPT) -g $(GCCWARN) -Wno-sign-compare $(OPTFLAGS) $(INCLUDES)
-SFLAGS = $(CFLAGS) -D__ASSEMBLY__
+
+# Note: use += for CFLAGS and SFLAGS in case something is set in MCONFIG.local
+CFLAGS += $(GCCOPT) -g $(GCCWARN) -Wno-sign-compare $(OPTFLAGS) $(INCLUDES)
+SFLAGS += $(CFLAGS) -D__ASSEMBLY__
.SUFFIXES: .c .o .S .s .i .elf .com .bin .asm .lst .c32 .lss