aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xextra/gnupg2/build9
1 files changed, 6 insertions, 3 deletions
diff --git a/extra/gnupg2/build b/extra/gnupg2/build
index da3d3351..972daaed 100755
--- a/extra/gnupg2/build
+++ b/extra/gnupg2/build
@@ -1,13 +1,16 @@
#!/bin/sh -e
export LDFLAGS="$LDFLAGS -static"
-export LIBGNUTLS_CFLAGS="$(pkgconf --static --cflags gnutls)"
-export LIBGNUTLS_LIBS="$(pkgconf --static --libs gnutls)"
+
+if cpt l gnutls; then
+ LIBGNUTLS_CFLAGS="$(pkgconf --static --cflags gnutls)"
+ LIBGNUTLS_LIBS="$(pkgconf --static --libs gnutls)"
+ export LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS
+fi
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
- # --disable-gnutls
make
make DESTDIR="$1" install