summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-07 10:45:41 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-07 10:45:41 -0600
commit080e53a9082e9d5bc75c3e84f84ffdc6cf1985d6 (patch)
treeacb7366e8cf5f775070f1bfcb9707db2a5916aaf /apps
parentec8a317ca70084f424cda27d9867e339e4cd0bd7 (diff)
downloadnuttx-080e53a9082e9d5bc75c3e84f84ffdc6cf1985d6.tar.gz
nuttx-080e53a9082e9d5bc75c3e84f84ffdc6cf1985d6.tar.bz2
nuttx-080e53a9082e9d5bc75c3e84f84ffdc6cf1985d6.zip
libapps.a needs to be added to the list of libraries to link against.
Diffstat (limited to 'apps')
-rw-r--r--apps/examples/helloxx/Makefile2
-rw-r--r--apps/import/Make.defs2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/examples/helloxx/Makefile b/apps/examples/helloxx/Makefile
index 204ed6881..151c1faa1 100644
--- a/apps/examples/helloxx/Makefile
+++ b/apps/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/apps/import/Make.defs b/apps/import/Make.defs
index 6817e63dd..056d9b7fe 100644
--- a/apps/import/Make.defs
+++ b/apps/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.