This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 8aef6ab2311 libs/libc/dlfcn: Build lib_dladdr.c in the CMake build
8aef6ab2311 is described below
commit 8aef6ab2311587ba0436e1d2f2d8c5a2e79a2494
Author: Marco Casaroli <[email protected]>
AuthorDate: Tue Oct 20 12:15:36 2026 +0200
libs/libc/dlfcn: Build lib_dladdr.c in the CMake build
Make.defs builds lib_dladdr.c with CONFIG_LIBC_DLFCN, but CMakeLists.txt
does not list it. A program that calls dladdr() links with make. With
CMake the link fails: undefined reference to dladdr.
Add the file to the list.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
---
libs/libc/dlfcn/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/libc/dlfcn/CMakeLists.txt b/libs/libc/dlfcn/CMakeLists.txt
index db2da089344..7e4942e9113 100644
--- a/libs/libc/dlfcn/CMakeLists.txt
+++ b/libs/libc/dlfcn/CMakeLists.txt
@@ -21,6 +21,6 @@
#
##############################################################################
if(CONFIG_LIBC_DLFCN)
target_sources(c PRIVATE lib_dlopen.c lib_dlclose.c lib_dlsym.c lib_dlerror.c
- lib_dlsymtab.c)
+ lib_dlsymtab.c lib_dladdr.c)
endif()
target_sources(c PRIVATE lib_dlfind_object.c)