mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:37:34 +00:00
LibC: Make sure crt0 and crt0_shared are built before LibC
We need these two object files in order for ld to work. Fixes #4538.
This commit is contained in:
parent
2c78fa066f
commit
5662e72126
1 changed files with 1 additions and 0 deletions
|
@ -118,6 +118,7 @@ set_property(
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++")
|
||||||
serenity_libc(LibC c)
|
serenity_libc(LibC c)
|
||||||
|
add_dependencies(LibC crt0 crt0_shared)
|
||||||
target_link_libraries(LibC ssp system)
|
target_link_libraries(LibC ssp system)
|
||||||
|
|
||||||
# We mark LibCStatic as a dependency of LibC because this triggers the build of the LibCStatic target
|
# We mark LibCStatic as a dependency of LibC because this triggers the build of the LibCStatic target
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue