more conservative compiler options for older compilers

This commit is contained in:
Christian Kroll 2012-10-17 08:32:07 +00:00
parent 971901e453
commit cb8d91d734
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ LIBS = -lm
# flags for the compiler # flags for the compiler
CFLAGS ?= -Wall -W -Wno-unused-parameter -Wno-sign-compare CFLAGS ?= -Wall -W -Wno-unused-parameter -Wno-sign-compare
CFLAGS += -g -Os -std=gnu99 -mstrict-X -fgnu89-inline -D_XOPEN_SOURCE=600 -DNDEBUG CFLAGS += -g -Os -std=gnu99 -fgnu89-inline -D_XOPEN_SOURCE=600 -DNDEBUG
# flags for the linker # flags for the linker
LDFLAGS += -T ./avr5.x -Wl,-Map,image.map -mmcu=$(MCU) LDFLAGS += -T ./avr5.x -Wl,-Map,image.map -mmcu=$(MCU)
@ -39,7 +39,7 @@ ifeq ($(OSTYPE),cygwin)
LDFLAGS_SIM = -Wl -T simulator/i386pe.x LDFLAGS_SIM = -Wl -T simulator/i386pe.x
LIBS_SIM = -lgdi32 -lwinmm -lm LIBS_SIM = -lgdi32 -lwinmm -lm
else else
CFLAGS_SIM = -g -g -Wall -pedantic -std=c99 -O0 -D_XOPEN_SOURCE=600 CFLAGS_SIM = -g -Wall -pedantic -std=c99 -O0 -D_XOPEN_SOURCE=600
ifeq ($(MACHINE),x86_64) ifeq ($(MACHINE),x86_64)
LDFLAGS_SIM = -g -Wl -T simulator/elf_x86_64.x LDFLAGS_SIM = -g -Wl -T simulator/elf_x86_64.x
else else