mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
cmake(bugfix):elf link should depends on starupobjs crt0.o
fix the correct dependency sequence to prevent startupobjs from not being generated before ELF linking. Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
parent
df6505567c
commit
d39ed19213
1 changed files with 3 additions and 0 deletions
|
|
@ -139,6 +139,9 @@ function(nuttx_add_application)
|
|||
set(TARGET "ELF_${TARGET}")
|
||||
add_library(${TARGET} ${SRCS})
|
||||
add_dependencies(${TARGET} apps_post)
|
||||
if(TARGET STARTUP_OBJS)
|
||||
add_dependencies(${TARGET} STARTUP_OBJS)
|
||||
endif()
|
||||
if(NOT "${CMAKE_LD}" MATCHES "gcc$")
|
||||
set(USE_LINKER True)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue