1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 23:27:34 +00:00

Ports: Build shared libraries for the GnuPG libraries

This builds all the GnuPG libraries as shared libraries so that -lintl
is linked when building the final GnuPG executable.
This commit is contained in:
Gunnar Beutner 2021-05-19 21:46:22 +02:00 committed by Andreas Kling
parent 5751327195
commit cdb0a08946
6 changed files with 40 additions and 8 deletions

View file

@ -8,3 +8,9 @@ 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
}