1
Fork 0
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:
Gunnar Beutner 2021-07-09 20:58:21 +02:00 committed by Gunnar Beutner
parent 2c78fa066f
commit 5662e72126

View file

@ -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