sim: Make.defs: tweak CXXFLAGS for LIBCXX
This commit is contained in:
parent
92cefb0a78
commit
f0e0e6ab4d
|
@ -54,9 +54,9 @@ ifeq ($(CONFIG_STACK_CANARIES),y)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCPUFLAGS = -fno-builtin
|
ARCHCPUFLAGS = -fno-builtin
|
||||||
ARCHCPUFLAGSXX = -fno-builtin -nostdinc++ -fcheck-new
|
ARCHCPUFLAGSXX = -fno-builtin -nostdinc++
|
||||||
ifeq ($(CONFIG_CXX_EXCEPTION),)
|
ifeq ($(CONFIG_CXX_EXCEPTION),)
|
||||||
ARCHCPUFLAGSXX += -fno-exceptions
|
ARCHCPUFLAGSXX += -fno-exceptions -fcheck-new
|
||||||
endif
|
endif
|
||||||
ARCHPICFLAGS = -fpic
|
ARCHPICFLAGS = -fpic
|
||||||
ARCHWARNINGS = -Wstrict-prototypes -Wundef
|
ARCHWARNINGS = -Wstrict-prototypes -Wundef
|
||||||
|
@ -100,6 +100,10 @@ CXXFLAGS := $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) \
|
||||||
CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
|
CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
|
||||||
AFLAGS := $(CFLAGS) -D__ASSEMBLY__
|
AFLAGS := $(CFLAGS) -D__ASSEMBLY__
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_LIBCXX),y)
|
||||||
|
CXXFLAGS += -DLIBCXX_BUILDING_LIBCXXABI
|
||||||
|
endif
|
||||||
|
|
||||||
# Loadable module definitions
|
# Loadable module definitions
|
||||||
|
|
||||||
CMODULEFLAGS = $(CFLAGS)
|
CMODULEFLAGS = $(CFLAGS)
|
||||||
|
|
Loading…
Reference in New Issue