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:
parent
d89858f42a
commit
0220b5361e
2 changed files with 15 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue