Skip to content

Commit

Permalink
Statically link to libstdc++
Browse files Browse the repository at this point in the history
so that we don't have to ship libstdc++ with Core
  • Loading branch information
borrrden committed Sep 4, 2024
1 parent cf53ccd commit a45ee66
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmake/platform_linux_desktop.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ function(setup_litecore_build)
${target} PRIVATE
"$<$<COMPILE_LANGUAGE:CXX>:-Wno-psabi;-Wno-odr>"
)

# Enough is enough, we keep bumping the compiler to get newer C++ stuff
# and then suffering the consequences of that stuff not being available
# everywhere that we need. Just build it into the product directly
target_link_options(
${target} PRIVATE
"-static-libstdc++"
"-static-libgcc"
)
endforeach()

foreach(liteCoreVariant LiteCoreObjects LiteCoreUnitTesting)
Expand Down

0 comments on commit a45ee66

Please sign in to comment.