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:
Gunnar Beutner 2021-07-09 20:58:21 +02:00 committed by Gunnar Beutner
parent 2c78fa066f
commit 5662e72126
Notes: sideshowbarker 2024-07-18 09:58:13 +09:00

View file

@ -118,6 +118,7 @@ set_property(
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++")
serenity_libc(LibC c)
add_dependencies(LibC crt0 crt0_shared)
target_link_libraries(LibC ssp system)
# We mark LibCStatic as a dependency of LibC because this triggers the build of the LibCStatic target