mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 08:38:38 +08:00
dlcn:need select MODULES when compile
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
parent
9ed93c6b1e
commit
e9e01506d3
2 changed files with 11 additions and 8 deletions
|
@ -130,6 +130,16 @@ function(nuttx_add_application)
|
||||||
|
|
||||||
nuttx_add_library_internal(${TARGET})
|
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})
|
install(TARGETS ${TARGET})
|
||||||
set_property(
|
set_property(
|
||||||
TARGET nuttx
|
TARGET nuttx
|
||||||
|
@ -155,14 +165,6 @@ function(nuttx_add_application)
|
||||||
endif()
|
endif()
|
||||||
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()
|
else()
|
||||||
set(TARGET "apps_${NAME}")
|
set(TARGET "apps_${NAME}")
|
||||||
add_custom_target(${TARGET})
|
add_custom_target(${TARGET})
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
config LIBC_DLFCN
|
config LIBC_DLFCN
|
||||||
bool "Shared library support"
|
bool "Shared library support"
|
||||||
default n
|
default n
|
||||||
|
select MODULES
|
||||||
select LIBC_MODLIB if !BUILD_FLAT
|
select LIBC_MODLIB if !BUILD_FLAT
|
||||||
select MODULE if BUILD_FLAT
|
select MODULE if BUILD_FLAT
|
||||||
---help---
|
---help---
|
||||||
|
|
Loading…
Reference in a new issue