mirror of
https://github.com/darlinghq/darling.git
synced 2024-11-23 12:19:43 +00:00
Update add_darling_executable to reference crt1.10.6
Adding in crt.c object file breaks the bash executable, luckly it is not need for later versions (10.5 or later) of macOS. So we can just not include it.
This commit is contained in:
parent
58fba5a72a
commit
fcc3d8c766
@ -12,7 +12,7 @@ FUNCTION(add_darling_executable exe)
|
|||||||
|
|
||||||
add_executable(${exe} ${files})
|
add_executable(${exe} ${files})
|
||||||
set_property(TARGET ${exe} APPEND_STRING PROPERTY
|
set_property(TARGET ${exe} APPEND_STRING PROPERTY
|
||||||
LINK_FLAGS " ${CMAKE_EXE_LINKER_FLAGS} -nostdlib ${CMAKE_BINARY_DIR}/src/external/csu/CMakeFiles/csu.dir/crt1.10.6.o ")
|
LINK_FLAGS " ${CMAKE_EXE_LINKER_FLAGS} -nostdlib ${CMAKE_BINARY_DIR}/src/external/csu/CMakeFiles/crt1.10.6.dir/start.S.o ")
|
||||||
|
|
||||||
if (BUILD_TARGET_64BIT)
|
if (BUILD_TARGET_64BIT)
|
||||||
target_compile_options(${exe} PRIVATE -arch ${APPLE_ARCH_64BIT})
|
target_compile_options(${exe} PRIVATE -arch ${APPLE_ARCH_64BIT})
|
||||||
@ -24,7 +24,7 @@ FUNCTION(add_darling_executable exe)
|
|||||||
|
|
||||||
use_ld64(${exe})
|
use_ld64(${exe})
|
||||||
target_link_libraries(${exe} system)
|
target_link_libraries(${exe} system)
|
||||||
add_dependencies(${exe} csu)
|
add_dependencies(${exe} crt1.10.6)
|
||||||
|
|
||||||
if ((NOT NO_DSYM) AND (NOT ${exe}_NO_DSYM))
|
if ((NOT NO_DSYM) AND (NOT ${exe}_NO_DSYM))
|
||||||
dsym(${exe})
|
dsym(${exe})
|
||||||
|
Loading…
Reference in New Issue
Block a user