Makefile.compile: use gnu11 to compile native

* with c11, gcc will report the following error:
  /usr/include/sys/ucontext.h:238:5: error: unknown type name ‘stack_t’
This commit is contained in:
Zihao Yu 2018-08-14 13:40:01 +08:00
parent 5496eb0de0
commit 90a1a94f51
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ ISA_DEF = __ISA_$(shell echo $(ISA) | tr a-z A-Z)__
INCLUDES = $(addprefix -I, $(INC_DIR)) -I$(AM_HOME)/am/ INCLUDES = $(addprefix -I, $(INC_DIR)) -I$(AM_HOME)/am/
INCLUDES += -I$(AM_HOME)/am/arch/$(ARCH)/include INCLUDES += -I$(AM_HOME)/am/arch/$(ARCH)/include
CFLAGS += -std=c11 -O2 -MMD -Wall -Werror -ggdb $(INCLUDES) -D$(ISA_DEF) -fno-builtin CFLAGS += -std=gnu11 -O2 -MMD -Wall -Werror -ggdb $(INCLUDES) -D$(ISA_DEF) -fno-builtin
CXXFLAGS += -std=c++11 -O2 -MMD -Wall -Werror -ggdb $(INCLUDES) -D$(ISA_DEF) -fno-builtin CXXFLAGS += -std=c++11 -O2 -MMD -Wall -Werror -ggdb $(INCLUDES) -D$(ISA_DEF) -fno-builtin
ASFLAGS += -MMD $(INCLUDES) -D$(ISA_DEF) ASFLAGS += -MMD $(INCLUDES) -D$(ISA_DEF)