build(tests): static link libgcc and libstdc++ on Linux (#4485)

This commit is contained in:
David Lane 2025-12-08 21:04:01 -05:00 committed by GitHub
commit 446e0a5252
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,7 @@
# linux specific target definitions # linux specific target definitions
# Using newer c++ compilers / features on older distros causes runtime dyn link errors # Using newer c++ compilers / features on older distros causes runtime dyn link errors
target_link_libraries(sunshine -static-libgcc -static-libstdc++) list(APPEND SUNSHINE_EXTERNAL_LIBRARIES
-static-libgcc
-static-libstdc++
)