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:
parent
5496eb0de0
commit
90a1a94f51
|
@ -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 += -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
|
||||
ASFLAGS += -MMD $(INCLUDES) -D$(ISA_DEF)
|
||||
|
||||
|
|
Loading…
Reference in New Issue