CMake: Use static libstdc++ for static builds
authorLuca Rood <dev@lucarood.com>
Sat, 2 Mar 2019 01:53:09 +0000 (02:53 +0100)
committerLuca Rood <dev@lucarood.com>
Sat, 2 Mar 2019 01:53:09 +0000 (02:53 +0100)
commitd5c2be7031912cca8f58e90283eb52f63f71b32f
tree9a3061a1aea0d090d5ebb01820ebabb3d1c6ab22
parent490a385c8124dea09c3d06cc0dd546189bc6ec11
CMake: Use static libstdc++ for static builds

This enables static linking of libstdc++ by default when building using
`WITH_STATIC_LIBS`. This makes builds more portable for anyone making
static builds (in particular for older systems).

Reviewed By: brecht, campbellbarton, sergey

Differential Revision: https://developer.blender.org/D4393
build_files/cmake/platform/platform_unix.cmake
release/datafiles/locale
release/scripts/addons
release/scripts/addons_contrib