diff --git a/scripts/ci/linux/assemble.sh b/scripts/ci/linux/assemble.sh index 241175d..1b4970a 100755 --- a/scripts/ci/linux/assemble.sh +++ b/scripts/ci/linux/assemble.sh @@ -34,6 +34,15 @@ touch server_distribution/mods/mods_go_here mkdir server_distribution/linux +# makes the server function on older Linux versions (this is so stupid) +nm --dynamic --undefined-only --with-symbol-versions dist/starbound_server | grep GLIBC_2.29 +./scripts/ci/linux/patchelf dist/starbound_server \ + --clear-symbol-version exp \ + --clear-symbol-version exp2 \ + --clear-symbol-version log \ + --clear-symbol-version log2 \ + --clear-symbol-version pow + cp \ dist/starbound_server \ dist/btree_repacker \ diff --git a/scripts/ci/linux/patchelf b/scripts/ci/linux/patchelf new file mode 100755 index 0000000..6f0ba61 Binary files /dev/null and b/scripts/ci/linux/patchelf differ