1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:47:35 +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

@ -2,14 +2,17 @@
port=libgpg-error
version=1.42
useconfigure=true
depends="gettext"
configopts="--disable-tests --disable-threads"
files="https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-${version}.tar.bz2 libgpg-error-${version}.tar.bz2 fc07e70f6c615f8c4f590a8e37a9b8dd2e2ca1e9408f8e60459c67452b925e23"
auth_type=sha256
pre_configure() {
export gcry_cv_gcc_has_f_visibility=no
}
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/libgpg-error.so -Wl,-soname,libgpg-error.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libgpg-error.a -Wl,--no-whole-archive -lintl
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libgpg-error.la
}