File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,18 @@ export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
9
9
export OPTIONS=" debug_symbols=no use_lto=yes"
10
10
export OPTIONS_MONO=" module_mono_enabled=yes mono_static=yes"
11
11
export TERM=xterm
12
- export CC=" gcc-9"
13
- export CXX=" g++-9"
14
12
13
+ # i386 doesn't play nice with -static-libstdc++, so we should link dynamically
14
+ # against an old enough GCC for compatibility with newer distros - so we only
15
+ # use a recent GCC for x86_64. See godotengine/godot#31743.
16
+ # Without defining CC/CXX, we use the default GCC 4.8.
15
17
if [ " $( getconf LONG_BIT) " == " 64" ]; then
16
- export OPTIONS=" ${OPTIONS} use_static_cpp=yes"
18
+ export CC=" gcc-9"
19
+ export CXX=" g++-9"
20
+ else
21
+ export OPTIONS=" $OPTIONS use_static_cpp=no"
22
+ export CC=" gcc"
23
+ export CXX=" g++"
17
24
fi
18
25
19
26
rm -rf godot
You can’t perform that action at this time.
0 commit comments