arch: Move -nostdinc++ to Tooolchain.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
c1e5ba4602
commit
94cb0c6072
@ -88,7 +88,7 @@ ifeq ($(CONFIG_ARM_TOOLCHAIN),GNU_EABI)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
||||||
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
||||||
|
@ -157,7 +157,7 @@ ifeq ($(CONFIG_MM_KASAN),y)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
||||||
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
||||||
|
@ -119,7 +119,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
||||||
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
||||||
|
@ -212,7 +212,7 @@ endif
|
|||||||
# Architecture flags
|
# Architecture flags
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
||||||
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
||||||
|
@ -111,7 +111,7 @@ ifeq ($(CONFIG_ARMV7R_TOOLCHAIN),GNU_EABI)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
||||||
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
||||||
|
@ -221,7 +221,7 @@ endif
|
|||||||
# Architecture flags
|
# Architecture flags
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
||||||
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
||||||
|
@ -91,7 +91,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
||||||
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
||||||
|
@ -37,7 +37,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
||||||
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
||||||
|
@ -56,7 +56,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ARCHCPUFLAGS = -mrtl-version-$(RTL_VERSION) -Wa,-rtl$(RTL_VERSION)
|
ARCHCPUFLAGS = -mrtl-version-$(RTL_VERSION) -Wa,-rtl$(RTL_VERSION)
|
||||||
ARCHCPUFLAGS += -Wa,-p -mmsg-full-path -TARG:arch=cevaxc5 -Wa,-vdiv4 -Wno-unused
|
ARCHCPUFLAGS += -Wa,-p -mmsg-full-path -TARG:arch=cevaxc5 -Wa,-vdiv4 -Wno-unused
|
||||||
|
@ -56,7 +56,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ARCHCPUFLAGS = -mrtl-version-$(RTL_VERSION) -Wa,-rtl$(RTL_VERSION)
|
ARCHCPUFLAGS = -mrtl-version-$(RTL_VERSION) -Wa,-rtl$(RTL_VERSION)
|
||||||
ARCHCPUFLAGS += -Wa,-p
|
ARCHCPUFLAGS += -Wa,-p
|
||||||
|
@ -284,7 +284,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
||||||
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
||||||
|
@ -61,7 +61,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
||||||
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
||||||
|
@ -33,7 +33,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
# Default toolchain
|
# Default toolchain
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
||||||
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
||||||
|
@ -56,7 +56,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
||||||
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
||||||
|
@ -72,7 +72,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
||||||
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
||||||
|
@ -60,7 +60,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
||||||
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
||||||
|
@ -60,7 +60,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCFLAGS += -fno-common
|
ARCHCFLAGS += -fno-common
|
||||||
ARCHCXXFLAGS += -fno-common
|
ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||||
|
|
||||||
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
ifneq ($(CONFIG_CXX_EXCEPTION),y)
|
||||||
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
|
||||||
|
@ -38,7 +38,6 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
|
|||||||
ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing
|
ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCXXFLAGS += -nostdinc++
|
|
||||||
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
|
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
|
||||||
ARCHWARNINGSXX = -Wall -Wshadow -Wundef
|
ARCHWARNINGSXX = -Wall -Wshadow -Wundef
|
||||||
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
|
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
|
||||||
|
Loading…
Reference in New Issue
Block a user