aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/MCONFIG
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-08-12 11:18:28 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-08-12 11:18:28 -0700
commit83a94f669e1aa6c035e81374225bfaab9796d39e (patch)
tree89d90debb131ad5f5d14a9bff757189a425bf3c4 /com32/lib/MCONFIG
parenta68a68735a637206baf1f6f5cd221b5fb697e370 (diff)
downloadsyslinux-elf-83a94f669e1aa6c035e81374225bfaab9796d39e.tar.gz
syslinux-elf-83a94f669e1aa6c035e81374225bfaab9796d39e.tar.xz
syslinux-elf-83a94f669e1aa6c035e81374225bfaab9796d39e.zip
com32: compile with -std=gnu99
Compile with -std=gnu99, this allows us to define initializers inside for() loops, which makes certain kinds of ugly macros easier to write. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/lib/MCONFIG')
-rw-r--r--com32/lib/MCONFIG4
1 files changed, 3 insertions, 1 deletions
diff --git a/com32/lib/MCONFIG b/com32/lib/MCONFIG
index b569abff..e40cf83c 100644
--- a/com32/lib/MCONFIG
+++ b/com32/lib/MCONFIG
@@ -3,7 +3,9 @@
topdir = ../..
include $(topdir)/MCONFIG
-GCCOPT := $(call gcc_ok,-m32,) $(call gcc_ok,-fno-stack-protector,)
+GCCOPT := $(call gcc_ok,-std=gnu99,) \
+ $(call gcc_ok,-m32,) \
+ $(call gcc_ok,-fno-stack-protector,) \
INCLUDE = -I.
STRIP = strip --strip-all -R .comment -R .note