diff --git a/libs/libxx/Makefile b/libs/libxx/Makefile index 6c787fe2a1..8b4b19e902 100644 --- a/libs/libxx/Makefile +++ b/libs/libxx/Makefile @@ -35,10 +35,12 @@ include $(TOPDIR)/Make.defs -CXXSRCS = libxx_cxa_atexit.cxx libxx_eabi_atexit.cxx +CXXSRCS = libxx_cxa_atexit.cxx ifeq ($(CONFIG_CXX_LIBSUPCXX),y) CXXSRCS += libxx_impure.cxx +else +CXXSRCS += libxx_eabi_atexit.cxx endif # Include the uClibc++ Make.defs file if selected. If it is included,