Optionally enable the GNU99 standard when compiling.

This commit is contained in:
Christopher Peplin 2012-04-02 10:44:19 -04:00
parent 5c29cef096
commit 82c7954211

View file

@ -371,8 +371,12 @@ endif
CPPFLAGS = -$(MCU_FLAG_NAME)=$(MCU) -DF_CPU=$(F_CPU) -DARDUINO=$(ARDUINO_VERSION) \ CPPFLAGS = -$(MCU_FLAG_NAME)=$(MCU) -DF_CPU=$(F_CPU) -DARDUINO=$(ARDUINO_VERSION) \
-I. -I$(ARDUINO_CORE_PATH) -I$(ARDUINO_VAR_PATH)/$(VARIANT) \ -I. -I$(ARDUINO_CORE_PATH) -I$(ARDUINO_VAR_PATH)/$(VARIANT) \
$(SYS_INCLUDES) -g -Os -w -Wall \ $(SYS_INCLUDES) -g -Os -w -Wall \
-ffunction-sections -fdata-sections -ffunction-sections -fdata-sections $(EXTRA_CPPFLAGS)
ifndef USE_GNU99
CFLAGS = -std=gnu99 CFLAGS = -std=gnu99
endif
CXXFLAGS = -fno-exceptions CXXFLAGS = -fno-exceptions
ASFLAGS = -$(MCU_FLAG_NAME)=$(MCU) -I. -x assembler-with-cpp ASFLAGS = -$(MCU_FLAG_NAME)=$(MCU) -I. -x assembler-with-cpp
LDFLAGS = -$(MCU_FLAG_NAME)=$(MCU) -Wl,--gc-sections -Os $(EXTRA_LDFLAGS) LDFLAGS = -$(MCU_FLAG_NAME)=$(MCU) -Wl,--gc-sections -Os $(EXTRA_LDFLAGS)