libapps.a needs to be added to the list of libraries to link against.
This commit is contained in:
parent
93c784f076
commit
1597617001
@ -109,7 +109,7 @@ $(CXXOBJS): %$(OBJEXT): %.cxx
|
|||||||
$(call ARCHIVE, $(BIN), $(OBJS))
|
$(call ARCHIVE, $(BIN), $(OBJS))
|
||||||
@touch .built
|
@touch .built
|
||||||
|
|
||||||
feq ($(CONFIG_BUILD_KERNEL),y)
|
ifeq ($(CONFIG_BUILD_KERNEL),y)
|
||||||
$(BIN_DIR)$(DELIM)$(PROGNAME): $(OBJS) $(MAINOBJ)
|
$(BIN_DIR)$(DELIM)$(PROGNAME): $(OBJS) $(MAINOBJ)
|
||||||
@echo "LD: $(PROGNAME)"
|
@echo "LD: $(PROGNAME)"
|
||||||
$(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $(INSTALL_DIR)$(DELIM)$(PROGNAME) $(ARCHCRT0OBJ) $(MAINOBJ) $(LDLIBS)
|
$(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $(INSTALL_DIR)$(DELIM)$(PROGNAME) $(ARCHCRT0OBJ) $(MAINOBJ) $(LDLIBS)
|
||||||
|
@ -189,7 +189,7 @@ else
|
|||||||
LDLIBPATH = -L $(APPDIR) -L $(TOPDIR)$(DELIM)libs
|
LDLIBPATH = -L $(APPDIR) -L $(TOPDIR)$(DELIM)libs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LDLIBS = -lnuttx
|
LDLIBS = -lapps -lnuttx
|
||||||
|
|
||||||
# Try to get the path to libgcc.a. Of course, this only works for GCC
|
# Try to get the path to libgcc.a. Of course, this only works for GCC
|
||||||
# toolchains.
|
# toolchains.
|
||||||
|
Loading…
Reference in New Issue
Block a user