Add GNU90_BUILD flag to toggle off -std=gnu99.

This commit is contained in:
Themaister 2013-10-22 21:41:51 +02:00
parent 7aa8b40759
commit 46177dbc40
2 changed files with 9 additions and 5 deletions

View File

@ -358,11 +358,13 @@ ifeq ($(CXX_BUILD), 1)
CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS
else else
LD = $(CC) LD = $(CC)
ifneq ($(GNU90_BUILD), 1)
ifneq ($(findstring icc,$(CC)),) ifneq ($(findstring icc,$(CC)),)
CFLAGS += -std=c99 -D_GNU_SOURCE CFLAGS += -std=c99 -D_GNU_SOURCE
else else
CFLAGS += -std=gnu99 CFLAGS += -std=gnu99
endif endif
endif
endif endif
ifeq ($(NOUNUSED), yes) ifeq ($(NOUNUSED), yes)

View File

@ -257,7 +257,9 @@ CXXFLAGS += -Wall -Wno-unused-result -Wno-unused-variable -I. -std=c++0x -D__STD
ifeq ($(CXX_BUILD), 1) ifeq ($(CXX_BUILD), 1)
CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS
else else
ifneq ($(GNU90_BUILD), 1)
CFLAGS += -std=gnu99 CFLAGS += -std=gnu99
endif
endif endif
all: $(TARGET) $(JTARGET) all: $(TARGET) $(JTARGET)