From 1597617001dbaa8ed95fe9439100bee0b9078b89 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 7 Sep 2014 10:45:41 -0600 Subject: [PATCH] libapps.a needs to be added to the list of libraries to link against. --- examples/helloxx/Makefile | 2 +- import/Make.defs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/helloxx/Makefile b/examples/helloxx/Makefile index 204ed6881..151c1faa1 100644 --- a/examples/helloxx/Makefile +++ b/examples/helloxx/Makefile @@ -109,7 +109,7 @@ $(CXXOBJS): %$(OBJEXT): %.cxx $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built -feq ($(CONFIG_BUILD_KERNEL),y) +ifeq ($(CONFIG_BUILD_KERNEL),y) $(BIN_DIR)$(DELIM)$(PROGNAME): $(OBJS) $(MAINOBJ) @echo "LD: $(PROGNAME)" $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $(INSTALL_DIR)$(DELIM)$(PROGNAME) $(ARCHCRT0OBJ) $(MAINOBJ) $(LDLIBS) diff --git a/import/Make.defs b/import/Make.defs index 6817e63dd..056d9b7fe 100644 --- a/import/Make.defs +++ b/import/Make.defs @@ -189,7 +189,7 @@ else LDLIBPATH = -L $(APPDIR) -L $(TOPDIR)$(DELIM)libs endif -LDLIBS = -lnuttx +LDLIBS = -lapps -lnuttx # Try to get the path to libgcc.a. Of course, this only works for GCC # toolchains.