diff options
| author | Rémi Verschelde | 2018-02-22 19:06:11 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2018-02-22 19:06:36 +0100 |
| commit | 689dfcd9ec5ad8aceabd96aaadf6eb57a31e62e4 (patch) | |
| tree | 9c71344ba44cde9400dc47219473c1ff485082c6 /platform/server | |
| parent | 46b594054c8f7118e21ab17e078b3ee4b0730a19 (diff) | |
| download | godot-689dfcd9ec5ad8aceabd96aaadf6eb57a31e62e4.tar.gz godot-689dfcd9ec5ad8aceabd96aaadf6eb57a31e62e4.tar.zst godot-689dfcd9ec5ad8aceabd96aaadf6eb57a31e62e4.zip | |
Diffstat (limited to 'platform/server')
| -rw-r--r-- | platform/server/detect.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/server/detect.py b/platform/server/detect.py index c7a96de23..f550cca22 100644 --- a/platform/server/detect.py +++ b/platform/server/detect.py @@ -22,6 +22,7 @@ def get_opts(): from SCons.Variables import BoolVariable return [ BoolVariable('use_llvm', 'Use the LLVM compiler', False), + BoolVariable('use_static_cpp', 'Link libgcc and libstdc++ statically for better portability', False), ] @@ -135,3 +136,7 @@ def configure(env): env.Append(CPPFLAGS=['-DSERVER_ENABLED', '-DUNIX_ENABLED']) env.Append(LIBS=['pthread']) env.Append(LIBS=['dl']) + + # Link those statically for portability + if env['use_static_cpp']: + env.Append(LINKFLAGS=['-static-libgcc', '-static-libstdc++']) |
