aboutsummaryrefslogtreecommitdiff
path: root/extra/gnupg2/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gnupg2/build')
-rwxr-xr-xextra/gnupg2/build11
1 files changed, 9 insertions, 2 deletions
diff --git a/extra/gnupg2/build b/extra/gnupg2/build
index ef2670bc..e112d126 100755
--- a/extra/gnupg2/build
+++ b/extra/gnupg2/build
@@ -2,10 +2,17 @@
export LDFLAGS="$LDFLAGS -static"
+if cpt l gnutls; then
+ LIBGNUTLS_CFLAGS="$(pkgconf --static --cflags gnutls)"
+ LIBGNUTLS_LIBS="$(pkgconf --static --libs gnutls)"
+ export LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS
+fi
+
+patch -p1 < fix-ldap.patch
+
./configure \
--prefix=/usr \
- --sbindir=/usr/bin \
- --disable-gnutls
+ --sbindir=/usr/bin
make
make DESTDIR="$1" install