From d033e8abeaaf6ba8f24919f4a781890a87a77937 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Sat, 1 Nov 2025 08:31:46 -0500 Subject: [PATCH] On Linux default `use_static_cpp` to disabled --- cmake/linux.cmake | 2 +- tools/linux.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/linux.cmake b/cmake/linux.cmake index 1fe163836..644f0814c 100644 --- a/cmake/linux.cmake +++ b/cmake/linux.cmake @@ -15,7 +15,7 @@ function(linux_options) the docs (https://docs.godotengine.org/en/latest/tutorials/scripting/cpp/build_system/cmake.html) for examples. ]] - option(GODOTCPP_USE_STATIC_CPP "Link libgcc and libstdc++ statically for better portability" ON) + option(GODOTCPP_USE_STATIC_CPP "Link libgcc and libstdc++ statically for better portability" OFF) endfunction() #[===========================[ Target Generation ]===========================] diff --git a/tools/linux.py b/tools/linux.py index ae8019877..8aae02c15 100644 --- a/tools/linux.py +++ b/tools/linux.py @@ -5,7 +5,7 @@ def options(opts): opts.Add(BoolVariable("use_llvm", "Use the LLVM compiler - only effective when targeting Linux", False)) - opts.Add(BoolVariable("use_static_cpp", "Link libgcc and libstdc++ statically for better portability", True)) + opts.Add(BoolVariable("use_static_cpp", "Link libgcc and libstdc++ statically for better portability", False)) def exists(env):