Fix LLVM libc++ undefined reference to __cxa_guard_*

This commit is contained in:
Alan Carvalho de Assis 2017-04-11 13:07:11 -06:00 committed by Gregory Nutt
parent 6560db912b
commit dced088ff5

View File

@ -50,13 +50,19 @@ endif
ifeq (,$(findstring y,$(CONFIG_UCLIBCXX) $(CONFIG_LIBCXX)))
CXXSRCS += libxx_delete.cxx libxx_deletea.cxx libxx_new.cxx libxx_newa.cxx
CXXSRCS += libxx_stdthrow.cxx libxx_cxa_guard.cxx
CXXSRCS += libxx_stdthrow.cxx
else
ifeq (,$(findstring y,$(CONFIG_UCLIBCXX_EXCEPTION) $(CONFIG_LIBCXX_EXCEPTION)))
CXXSRCS += libxx_stdthrow.cxx
endif
endif
# uClibc++ doesn't need this file
ifneq ($(CONFIG_UCLIBCXX),y)
CXXSRCS += libxx_cxa_guard.cxx
endif
# Paths
DEPPATH = --dep-path .