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

@ -8,10 +8,15 @@ files="https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${version}.tar.bz2 libgc
auth_type=sha256
pre_configure() {
export gcry_cv_gcc_has_f_visibility=no
export ac_cv_lib_pthread_pthread_create=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/libgcrypt.so -Wl,-soname,libgcrypt.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libgcrypt.a -Wl,--no-whole-archive -lgpg-error
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libgcrypt.la
}