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.