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