diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-08-12 11:18:28 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-08-12 11:18:28 -0700 |
commit | 83a94f669e1aa6c035e81374225bfaab9796d39e (patch) | |
tree | 89d90debb131ad5f5d14a9bff757189a425bf3c4 /com32/libutil/Makefile | |
parent | a68a68735a637206baf1f6f5cd221b5fb697e370 (diff) | |
download | syslinux-83a94f669e1aa6c035e81374225bfaab9796d39e.tar.gz |
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/libutil/Makefile')
-rw-r--r-- | com32/libutil/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/com32/libutil/Makefile b/com32/libutil/Makefile index 01fefac3..64d78b98 100644 --- a/com32/libutil/Makefile +++ b/com32/libutil/Makefile @@ -35,14 +35,16 @@ CC = gcc gcc_ok = $(shell tmpf=$(TMPFILE); if $(CC) $(1) -c -x c /dev/null -o $$tmpf 2>/dev/null; \ then echo $(1); else echo $(2); fi; rm -f $$tmpf) -M32 := $(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,) \ LD = ld -m elf_i386 AR = ar NASM = nasm NASMOPT = -O9999 RANLIB = ranlib -CFLAGS = $(M32) -mregparm=3 -DREGPARM=3 -W -Wall -march=i386 -Os \ +CFLAGS = $(GCCOPT) -mregparm=3 -DREGPARM=3 -W -Wall -march=i386 -Os \ -fomit-frame-pointer -D__COM32__ \ -nostdinc -iwithprefix include \ -I./include -I../include \ |