From 10d596cb8e37d3a6133e2bedbf8a6785f27e66f4 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Wed, 24 Jun 2020 10:57:05 +0800 Subject: [PATCH] make/import: remove LDLIBS declare which already exported in scripts/Make.defs Change-Id: I74858632f779fc2a409c9f4afb114db14003686d Signed-off-by: chao.an --- import/Make.defs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/import/Make.defs b/import/Make.defs index 4a87383a4..3f99b32c8 100644 --- a/import/Make.defs +++ b/import/Make.defs @@ -80,12 +80,10 @@ else LDLIBPATH = -L $(APPDIR) -L $(TOPDIR)$(DELIM)libs endif -LDLIBS = -lapps -lnuttx - # Try to get the path to libgcc.a. Of course, this only works for GCC # toolchains. -LIBGCC = "${shell "$(CC)" $(ARCHCPUFLAGS) -print-libgcc-file-name 2>/dev/null}" +LIBGCC = ${shell "$(CC)" $(ARCHCPUFLAGS) -print-file-name=libgcc.a} ifneq ($(LIBGCC),) LDLIBPATH += -L "${shell dirname $(LIBGCC)}" LDLIBS += -lgcc