improve linux server compatibility

This commit is contained in:
Kae 2024-07-30 12:13:43 +10:00
parent 1224213cab
commit a5f42ce40a
2 changed files with 9 additions and 0 deletions

View File

@ -34,6 +34,15 @@ touch server_distribution/mods/mods_go_here
mkdir server_distribution/linux 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 \ cp \
dist/starbound_server \ dist/starbound_server \
dist/btree_repacker \ dist/btree_repacker \

BIN
scripts/ci/linux/patchelf Executable file

Binary file not shown.