From a5f42ce40a848e3ef66dd6b0bda0fd94954fb6bb Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 30 Jul 2024 12:13:43 +1000 Subject: improve linux server compatibility --- scripts/ci/linux/assemble.sh | 9 +++++++++ scripts/ci/linux/patchelf | Bin 0 -> 3723608 bytes 2 files changed, 9 insertions(+) create mode 100755 scripts/ci/linux/patchelf (limited to 'scripts') 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 -- cgit v1.2.3