From 9435502c8d618236ab17ce72bf439f84ca32c1af Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Sat, 27 Aug 2022 20:39:32 +1200 Subject: [PATCH] Statically link libstdc++ Otherwise binaries build on GitHub Actions fail to load on NixOS as dynamically linked libstdc++ cannot be found. --- addons/godot_xterm/native/SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/godot_xterm/native/SConstruct b/addons/godot_xterm/native/SConstruct index 32ce1da..a15a194 100644 --- a/addons/godot_xterm/native/SConstruct +++ b/addons/godot_xterm/native/SConstruct @@ -94,7 +94,7 @@ if env['platform'] == 'linux': env['LIBSUFFIX'] = '.a' env.Append(CCFLAGS=['-fPIC', '-Wwrite-strings']) - env.Append(LINKFLAGS=["-Wl,-R'$$ORIGIN'"]) + env.Append(LINKFLAGS=["-Wl,-R'$$ORIGIN'", '-static-libstdc++']) if env['target'] == 'debug': env.Append(CCFLAGS=['-Og', '-g'])