mirror of
https://github.com/apache/nuttx.git
synced 2025-12-09 11:43:39 +08:00
dlcn:need select MODULES when compile
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -130,6 +130,16 @@ function(nuttx_add_application)
|
||||
|
||||
nuttx_add_library_internal(${TARGET})
|
||||
|
||||
# loadable build requires applying ELF flags to all applications
|
||||
|
||||
if(CONFIG_MODULES)
|
||||
target_compile_options(
|
||||
${TARGET}
|
||||
PRIVATE
|
||||
$<GENEX_EVAL:$<TARGET_PROPERTY:nuttx,NUTTX_ELF_APP_COMPILE_OPTIONS>>
|
||||
)
|
||||
endif()
|
||||
|
||||
install(TARGETS ${TARGET})
|
||||
set_property(
|
||||
TARGET nuttx
|
||||
@@ -155,14 +165,6 @@ function(nuttx_add_application)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# loadable build requires applying ELF flags to all applications
|
||||
|
||||
if(CONFIG_MODULES)
|
||||
target_compile_options(
|
||||
${TARGET}
|
||||
PRIVATE
|
||||
$<GENEX_EVAL:$<TARGET_PROPERTY:nuttx,NUTTX_ELF_APP_COMPILE_OPTIONS>>)
|
||||
endif()
|
||||
else()
|
||||
set(TARGET "apps_${NAME}")
|
||||
add_custom_target(${TARGET})
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
config LIBC_DLFCN
|
||||
bool "Shared library support"
|
||||
default n
|
||||
select MODULES
|
||||
select LIBC_MODLIB if !BUILD_FLAT
|
||||
select MODULE if BUILD_FLAT
|
||||
---help---
|
||||
|
||||
Reference in New Issue
Block a user