mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 11:03:16 +08:00
arch/sim: make nuttx link target depend on staging libraries
The nuttx link target only listed libarch.a, board lib, arch objects and nuttx-names.dat as prerequisites, so rebuilding an app or system library (staging/libapps.a etc.) did not trigger a relink and the change never reached the binary. Add the staging libraries passed in via LINKLIBS to the prerequisite list, matching the pattern used by arch/arm/src/Makefile. Signed-off-by: rongbaichuan <rongbaichuan1027@163.com>
This commit is contained in:
committed by
Alan C. Assis
parent
0795d9a647
commit
1401179f85
@@ -485,7 +485,7 @@ endef
|
||||
# stuff doesn't work there as we expect.
|
||||
# Note: _stext stuff is for CONFIG_CXX_INITIALIZE_SINIT, which in not
|
||||
# necessary for macOS.
|
||||
nuttx$(EXEEXT): libarch$(LIBEXT) board/libboard$(LIBEXT) $(HEADOBJ) $(LINKOBJS) $(HOSTOBJS) nuttx-names.dat $(EXTRA_LIB_DEPS)
|
||||
nuttx$(EXEEXT): libarch$(LIBEXT) board/libboard$(LIBEXT) $(HEADOBJ) $(LINKOBJS) $(HOSTOBJS) nuttx-names.dat $(EXTRA_LIB_DEPS) $(addprefix $(TOPDIR)$(DELIM)staging$(DELIM),$(LINKLIBS))
|
||||
$(Q) echo "LD: nuttx$(EXEEXT)"
|
||||
$(Q) $(LD) -r $(LDLINKFLAGS) $(RELPATHS) $(EXTRA_LIBPATHS) $(EXTRALINKCMDS) \
|
||||
-o nuttx.rel $(REQUIREDOBJS) $(LDSTARTGROUP) $(RELLIBS) $(EXTRA_LIBS) $(LDENDGROUP)
|
||||
|
||||
Reference in New Issue
Block a user