mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 03:47: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:
parent
5751327195
commit
cdb0a08946
6 changed files with 40 additions and 8 deletions
|
@ -2,15 +2,20 @@
|
|||
port=libassuan
|
||||
version=2.5.5
|
||||
useconfigure=true
|
||||
#configopts="--with-libgpg-error-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
|
||||
depends="libgpg-error"
|
||||
files="https://gnupg.org/ftp/gcrypt/libassuan/libassuan-${version}.tar.bz2 libassuan-${version}.tar.bz2 8e8c2fcc982f9ca67dcbb1d95e2dc746b1739a4668bc20b3a3c5be632edb34e4"
|
||||
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/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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue