mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 12:17:36 +00:00
Ports: Replace manually linking libsodium
with a libtool patch
This commit is contained in:
parent
e9e6dd925c
commit
6d20f2aaa1
3 changed files with 93 additions and 6 deletions
|
@ -2,14 +2,9 @@
|
|||
port=libsodium
|
||||
version=1.0.18
|
||||
useconfigure=true
|
||||
configopts=("--disable-static" "--enable-shared")
|
||||
use_fresh_config_sub=true
|
||||
config_sub_paths=("build-aux/config.sub")
|
||||
workdir=libsodium-${version}
|
||||
files="https://download.libsodium.org/libsodium/releases/libsodium-${version}.tar.gz libsodium-${version}.tar.gz 6f504490b342a4f8a4c4a02fc9b866cbef8622d5df4e5452b46be121e46636c1"
|
||||
auth_type=sha256
|
||||
|
||||
install() {
|
||||
run make DESTDIR=${SERENITY_INSTALL_ROOT} "${installopts[@]}" install
|
||||
${CC} -shared -pthread -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libsodium.so -Wl,-soname,libsodium.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libsodium.a -Wl,--no-whole-archive
|
||||
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libsodium.la
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue