1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 06:57:45 +00:00

Ports: Replace manually linking libassuan with a libtool patch

This commit is contained in:
Tim Schumacher 2022-06-03 16:33:50 +02:00 committed by Linus Groh
parent dadb6e1c15
commit c4f645f4a2
4 changed files with 93 additions and 9 deletions

View file

@ -13,11 +13,5 @@ pre_configure() {
}
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 -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libassuan.so -Wl,-soname,libassuan.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libassuan.a -Wl,--no-whole-archive -lgpg-error
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libassuan.la
run ./configure --host="${SERENITY_ARCH}-pc-serenity" --build="$($workdir/build-aux/config.guess)" --disable-static --enable-shared "${configopts[@]}"
}