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"
99export OPTIONS=" debug_symbols=no use_lto=yes"
1010export OPTIONS_MONO=" module_mono_enabled=yes mono_static=yes"
1111export TERM=xterm
12- export CC=" gcc-9"
13- export CXX=" g++-9"
1412
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.
1517if [ " $( 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++"
1724fi
1825
1926rm -rf godot
You can’t perform that action at this time.
0 commit comments