Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-07-30 12:13:43 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-07-30 12:13:43 +1000
commita5f42ce40a848e3ef66dd6b0bda0fd94954fb6bb (patch)
treebfec10dba46033ebd3b67849d6bf55d4fb665135 /scripts
parent1224213cab2594eb9b18f97c238af148d662063d (diff)
improve linux server compatibility
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci/linux/assemble.sh9
-rwxr-xr-xscripts/ci/linux/patchelfbin0 -> 3723608 bytes
2 files changed, 9 insertions, 0 deletions
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
--- /dev/null
+++ b/scripts/ci/linux/patchelf
Binary files differ