Browse Source

On Linux default `use_static_cpp` to disabled

David Snopek 1 month ago
parent
commit
d033e8abea
2 changed files with 2 additions and 2 deletions
  1. 1 1
      cmake/linux.cmake
  2. 1 1
      tools/linux.py

+ 1 - 1
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)
         the docs (https://docs.godotengine.org/en/latest/tutorials/scripting/cpp/build_system/cmake.html)
         for examples.
         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()
 endfunction()
 
 
 #[===========================[ Target Generation ]===========================]
 #[===========================[ Target Generation ]===========================]

+ 1 - 1
tools/linux.py

@@ -5,7 +5,7 @@ from SCons.Variables import BoolVariable
 
 
 def options(opts):
 def options(opts):
     opts.Add(BoolVariable("use_llvm", "Use the LLVM compiler - only effective when targeting Linux", False))
     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):
 def exists(env):