1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

LibC: Also build a static version of libc

This commit is contained in:
Itamar 2020-11-20 14:18:53 +02:00 committed by Andreas Kling
parent d89858f42a
commit 0220b5361e
2 changed files with 15 additions and 0 deletions

View file

@ -66,6 +66,11 @@ add_custom_command(
)
set(SOURCES ${LIBC_SOURCES} ${AK_SOURCES} ${ELF_SOURCES})
serenity_libc_static(LibCStatic c)
target_link_libraries(LibCStatic crt0)
add_dependencies(LibCStatic LibM)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++")
serenity_libc(LibC c)
target_link_libraries(LibC crt0)