diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-19 21:46:22 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-19 22:45:02 +0200 |
commit | cdb0a08946ae34ac0f6daef95881668b53adc9c9 (patch) | |
tree | b92372ca6cbbc9ae72dc99551ef66615da6367da /Ports/libksba | |
parent | 57513271956942bbe51b39afeb4bb445aaff21fb (diff) | |
download | serenity-cdb0a08946ae34ac0f6daef95881668b53adc9c9.zip |
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.
Diffstat (limited to 'Ports/libksba')
-rwxr-xr-x | Ports/libksba/package.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Ports/libksba/package.sh b/Ports/libksba/package.sh index 54b4cc5592..72a9985789 100755 --- a/Ports/libksba/package.sh +++ b/Ports/libksba/package.sh @@ -2,6 +2,7 @@ port=libksba version=1.5.1 useconfigure=true +depends=libgpg-error files="https://gnupg.org/ftp/gcrypt/libksba/libksba-${version}.tar.bz2 libksba-${version}.tar.bz2 b0f4c65e4e447d9a2349f6b8c0e77a28be9531e4548ba02c545d1f46dc7bf921" auth_type=sha256 @@ -12,3 +13,9 @@ 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/libksba.so -Wl,-soname,libksba.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libksba.a -Wl,--no-whole-archive -lgpg-error + rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libksba.la +} |