mirror of
https://github.com/libretro/RetroArch
synced 2025-02-08 15:40:14 +00:00
Add GNU90_BUILD flag to toggle off -std=gnu99.
This commit is contained in:
parent
7aa8b40759
commit
46177dbc40
10
Makefile
10
Makefile
@ -358,10 +358,12 @@ ifeq ($(CXX_BUILD), 1)
|
||||
CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS
|
||||
else
|
||||
LD = $(CC)
|
||||
ifneq ($(findstring icc,$(CC)),)
|
||||
CFLAGS += -std=c99 -D_GNU_SOURCE
|
||||
else
|
||||
CFLAGS += -std=gnu99
|
||||
ifneq ($(GNU90_BUILD), 1)
|
||||
ifneq ($(findstring icc,$(CC)),)
|
||||
CFLAGS += -std=c99 -D_GNU_SOURCE
|
||||
else
|
||||
CFLAGS += -std=gnu99
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -257,7 +257,9 @@ CXXFLAGS += -Wall -Wno-unused-result -Wno-unused-variable -I. -std=c++0x -D__STD
|
||||
ifeq ($(CXX_BUILD), 1)
|
||||
CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS
|
||||
else
|
||||
CFLAGS += -std=gnu99
|
||||
ifneq ($(GNU90_BUILD), 1)
|
||||
CFLAGS += -std=gnu99
|
||||
endif
|
||||
endif
|
||||
|
||||
all: $(TARGET) $(JTARGET)
|
||||
|
Loading…
x
Reference in New Issue
Block a user