diff --git a/boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs b/boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs index 12e1bd7115..53c645e368 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs +++ b/boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs @@ -42,12 +42,7 @@ CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) AFLAGS := $(CFLAGS) -D__ASSEMBLY__ ifeq ($(CONFIG_LIBCXX),y) - CXXFLAGS += -std=c++14 -D__GLIBCXX__ -DMB_LEN_MAX=8 -DHAVE_DEPENDENT_EH_ABI=0 \ - -D_DEBUG -D_LIBCPP_BUILD_STATIC -D_LIBCPP_STD_VER=14 - - ifneq ($(CONFIG_CXX_EXCEPTION),y) - CXXFLAGS += -D_LIBCPP_NO_EXCEPTIONS - endif + CXXFLAGS += -std=c++14 endif NXFLATLDFLAGS1 = -r -d -warn-common