You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/06/29 23:52:21 UTC

[incubator-nuttx-apps] 02/04: make/import: remove LDLIBS declare

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 10d596cb8e37d3a6133e2bedbf8a6785f27e66f4
Author: chao.an <an...@xiaomi.com>
AuthorDate: Wed Jun 24 10:57:05 2020 +0800

    make/import: remove LDLIBS declare
    
    which already exported in scripts/Make.defs
    
    Change-Id: I74858632f779fc2a409c9f4afb114db14003686d
    Signed-off-by: chao.an <an...@xiaomi.com>
---
 import/Make.defs | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/import/Make.defs b/import/Make.defs
index 4a87383..3f99b32 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