diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-07-09 20:58:21 +0200 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-07-09 21:56:21 +0200 |
commit | 5662e72126f7905af92635a8def6b694f538f61a (patch) | |
tree | b17e22e3c74ccd65ad132b8fa74e8954e113a089 | |
parent | 2c78fa066f9b914d4be494db142675a88007a1fe (diff) | |
download | serenity-5662e72126f7905af92635a8def6b694f538f61a.zip |
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.
-rw-r--r-- | Userland/Libraries/LibC/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/CMakeLists.txt b/Userland/Libraries/LibC/CMakeLists.txt index 99a640b194..592ad1fb2e 100644 --- a/Userland/Libraries/LibC/CMakeLists.txt +++ b/Userland/Libraries/LibC/CMakeLists.txt @@ -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 |