bambino-200e: Add EXTRA_LIBS and EXTRA_LIBPATHS to nsh/Make.defs

This commit is contained in:
Gregory Nutt 2016-11-03 09:15:30 -06:00
parent ea9ac44171
commit 96aba62fda

View File

@ -117,6 +117,12 @@ OBJEXT = .o
LIBEXT = .a
EXEEXT =
ifeq ($(CONFIG_CXX_LINK_GNUTOOL_LIB),y)
EXTRA_LIBS = "${shell "$(CXX)" $(ARCHCPUFLAGS) -print-file-name=$(LIBSTDCXX)}"
GXX_LIBDIR := ${shell dirname $(LIBGXX)}
EXTRA_LIBPATHS = -L"$(GXX_LIBDIR)"
endif
ifneq ($(CROSSDEV),arm-nuttx-elf-)
LDFLAGS += -nostartfiles -nodefaultlibs
endif