Fixed library generation
This commit is contained in:
parent
52c20efff5
commit
66ad46cef6
1
server/repro/env/libs/libDataPipes.so
vendored
1
server/repro/env/libs/libDataPipes.so
vendored
@ -1 +0,0 @@
|
|||||||
/home/wolverindev/TeaSpeak/server/libraries/DataPipes/out/linux_amd64/lib/libDataPipes.so
|
|
1
server/repro/env/libs/libTeaMusic.so
vendored
1
server/repro/env/libs/libTeaMusic.so
vendored
@ -1 +0,0 @@
|
|||||||
/home/wolverindev/TeaSpeak/server/TeaSpeak/MusicBot/libs/libTeaMusic.so
|
|
1
server/repro/env/libs/libcrypto.so
vendored
1
server/repro/env/libs/libcrypto.so
vendored
@ -1 +0,0 @@
|
|||||||
/home/wolverindev/TeaSpeak/server/libraries/boringssl/out/linux_amd64/crypto/libcrypto.so
|
|
1
server/repro/env/libs/libjemalloc.so.2
vendored
1
server/repro/env/libs/libjemalloc.so.2
vendored
@ -1 +0,0 @@
|
|||||||
/home/wolverindev/TeaSpeak/server/libraries/jemalloc/out/linux_amd64/lib/libjemalloc.so.2
|
|
1
server/repro/env/libs/libsqlite3.so.0
vendored
1
server/repro/env/libs/libsqlite3.so.0
vendored
@ -1 +0,0 @@
|
|||||||
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0
|
|
1
server/repro/env/libs/libssl.so
vendored
1
server/repro/env/libs/libssl.so
vendored
@ -1 +0,0 @@
|
|||||||
/home/wolverindev/TeaSpeak/server/libraries/boringssl/out/linux_amd64/ssl/libssl.so
|
|
@ -9,6 +9,9 @@
|
|||||||
# "libTeaMusic.so"
|
# "libTeaMusic.so"
|
||||||
# "libnice.so.10"
|
# "libnice.so.10"
|
||||||
# "libpcre.so.3" (only for web)
|
# "libpcre.so.3" (only for web)
|
||||||
|
# "libgobject-2.0.so.0" (only for web)
|
||||||
|
# "libglib-2.0.so.0" (only for web)
|
||||||
|
# "libffi.so.7"
|
||||||
|
|
||||||
[[ -z "${build_os_type}" ]] && { echo "missing build os type"; exit 1; }
|
[[ -z "${build_os_type}" ]] && { echo "missing build os type"; exit 1; }
|
||||||
[[ -z "${build_os_arch}" ]] && { echo "missing build os arch"; exit 1; }
|
[[ -z "${build_os_arch}" ]] && { echo "missing build os arch"; exit 1; }
|
||||||
@ -65,17 +68,30 @@ if ldd "../../../environment/TeaSpeakServer" | grep -q "libnice.so.10"; then
|
|||||||
|
|
||||||
# Setting up libnice
|
# Setting up libnice
|
||||||
library_path=$(realpath "${library_base}/libnice/${build_os_type}_${build_os_arch}/lib/libnice.so.10")
|
library_path=$(realpath "${library_base}/libnice/${build_os_type}_${build_os_arch}/lib/libnice.so.10")
|
||||||
cp "$library_path" . || { echo "failed to copy libnice.so.10"; exit 1; }
|
cp "$library_path" libnice.so.10 || { echo "failed to copy libnice.so.10"; exit 1; }
|
||||||
|
|
||||||
|
|
||||||
|
glib_libs=$(realpath "${library_base}//glibc/${build_os_type}_${build_os_arch}/lib/"*"/")
|
||||||
|
cp "$glib_libs/libgobject-2.0.so.0" . || { echo "failed to copy libgobject-2.0.so.0"; exit 1; }
|
||||||
|
cp "$glib_libs/libgmodule-2.0.so.0" . || { echo "failed to copy libgmodule-2.0.so.0"; exit 1; }
|
||||||
|
cp "$glib_libs/libglib-2.0.so.0" . || { echo "failed to copy libglib-2.0.so.0"; exit 1; }
|
||||||
|
cp "$glib_libs/libgio-2.0.so.0" . || { echo "failed to copy libgio-2.0.so.0"; exit 1; }
|
||||||
|
cp "$glib_libs/libffi.so.7" . || { echo "failed to copy libffi.so.7"; exit 1; }
|
||||||
|
|
||||||
|
# "libgobject-2.0.so.0" (only for web)
|
||||||
|
# "libglib-2.0.so.0" (only for web)
|
||||||
|
|
||||||
# Setting up libpcre
|
# Setting up libpcre
|
||||||
query_system_link "libpcre.so.3"
|
query_system_link "libpcre.so.3"
|
||||||
cp "${library_path}" . || { echo "failed to copy libpcre.so.3"; exit 1; }
|
cp "${library_path}" . || { echo "failed to copy libpcre.so.3"; exit 1; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Fix rpaths
|
# Doing some prostprocessing
|
||||||
|
chmod 755 *
|
||||||
for file in *.so*; do
|
for file in *.so*; do
|
||||||
echo "Editing rpath for $file"
|
echo "Editing rpath for $file"
|
||||||
|
strip -s "$file"
|
||||||
patchelf --set-rpath "./libs/:./" "$file"
|
patchelf --set-rpath "./libs/:./" "$file"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "All libraries have been linked successfully"
|
echo "All libraries have been copied successfully"
|
@ -29,7 +29,8 @@ mv TeaSpeakServerTmp TeaSpeakServer
|
|||||||
|
|
||||||
strip -s -p -v TeaSpeakServer || { echo "failed to strip symbols!"; exit 1; }
|
strip -s -p -v TeaSpeakServer || { echo "failed to strip symbols!"; exit 1; }
|
||||||
patchelf --set-rpath ./libs/ TeaSpeakServer || { echo "failed to set rpath!"; exit 1; }
|
patchelf --set-rpath ./libs/ TeaSpeakServer || { echo "failed to set rpath!"; exit 1; }
|
||||||
tar --dereference -czvf "../${BUILD_FILENAME}" *
|
tar --dereference -cvf - * | gzip -9 "../${BUILD_FILENAME}" || { echo "failed to package server"; exit 1; }
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
rm -r finalenv
|
rm -r finalenv
|
||||||
./make_symbol.sh
|
./make_symbol.sh
|
||||||
|
2
shared
2
shared
@ -1 +1 @@
|
|||||||
Subproject commit a829f705d21267f2252d5aa84fb6213460b1ea33
|
Subproject commit 664b73910c99558f9ba14dd2f06dabe67b5f2f2a
|
Loading…
Reference in New Issue
Block a user