aboutsummaryrefslogtreecommitdiff
path: root/extra/gnupg2/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gnupg2/build')
-rwxr-xr-xextra/gnupg2/build9
1 files changed, 7 insertions, 2 deletions
diff --git a/extra/gnupg2/build b/extra/gnupg2/build
index 68be98c6..e112d126 100755
--- a/extra/gnupg2/build
+++ b/extra/gnupg2/build
@@ -1,9 +1,14 @@
#!/bin/sh -e
export LDFLAGS="$LDFLAGS -static"
-export PKG_CONFIG=pkgconf\ --static
-cpt l -q gnutls && export LIBGNUTLS_LIBS="-lgnutls -latomic -lnettle -lhogweed -lnettle"
+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 \