This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 0e1cc2ad5 Application.mk: pass EXTRA_LIBPATHS when linking modules
0e1cc2ad5 is described below

commit 0e1cc2ad52c7b07d555671b86ce0d230c0a17350
Author: anjiahao <[email protected]>
AuthorDate: Sun Nov 29 02:07:17 2026 +0800

    Application.mk: pass EXTRA_LIBPATHS when linking modules
    
    ELFLD links a module with MODLDFLAGS and LDLIBPATH but not with
    EXTRA_LIBPATHS, although the exported makeinfo.sh provides it.  A
    module that needs a library from an extra path therefore fails to
    link in an exported build.  Pass EXTRA_LIBPATHS to MODULELD, the same
    way the regular application link does.
    
    Signed-off-by: anjiahao <[email protected]>
---
 Application.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Application.mk b/Application.mk
index 9ff99450f..16b6bd56f 100644
--- a/Application.mk
+++ b/Application.mk
@@ -242,7 +242,7 @@ endef
 
 define ELFLD
        $(ECHO_BEGIN)"LD: $2 "
-       $(Q) $(MODULELD) $(MODLDFLAGS) $(LDMAP) $(LDLIBPATH) $(ARCHCRT0OBJ) $1 
$(LDSTARTGROUP) $(LDLIBS) $(LDENDGROUP) -o $2
+       $(Q) $(MODULELD) $(MODLDFLAGS) $(LDMAP) $(EXTRA_LIBPATHS) $(LDLIBPATH) 
$(ARCHCRT0OBJ) $1 $(LDSTARTGROUP) $(LDLIBS) $(LDENDGROUP) -o $2
        $(ECHO_END)
 endef
 

Reply via email to