1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

LibC: Link statically with libstdc++

This allows us to have the implementation of __cxa_demangle in libc.so.
This commit is contained in:
Itamar 2020-11-13 14:47:00 +02:00 committed by Andreas Kling
parent 706a8c05fd
commit dfdd977a82
3 changed files with 2 additions and 10 deletions

View file

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