mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +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})
|
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---
|
||||||
|
|||||||
Reference in New Issue
Block a user