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:
parent
706a8c05fd
commit
dfdd977a82
3 changed files with 2 additions and 10 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue