1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 01:37:36 +00:00

Ports: Replace manually linking npth with a libtool patch

This commit is contained in:
Tim Schumacher 2022-06-03 17:13:18 +02:00 committed by Linus Groh
parent 834e0ee614
commit 1f726791fb
3 changed files with 92 additions and 6 deletions

View file

@ -10,9 +10,3 @@ auth_type=sha256
configure() {
run ./configure --host="${SERENITY_ARCH}-pc-serenity" --build="$($workdir/build-aux/config.guess)" "${configopts[@]}"
}
install() {
run make DESTDIR=${SERENITY_INSTALL_ROOT} "${installopts[@]}" install
${CC} -shared -pthread -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libnpth.so -Wl,-soname,libnpth.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libnpth.a -Wl,--no-whole-archive
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libnpth.la
}