aboutsummaryrefslogtreecommitdiff
path: root/extra/gnupg2/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gnupg2/build')
-rwxr-xr-xextra/gnupg2/build8
1 files changed, 7 insertions, 1 deletions
diff --git a/extra/gnupg2/build b/extra/gnupg2/build
index ef2670bc..5ad311a1 100755
--- a/extra/gnupg2/build
+++ b/extra/gnupg2/build
@@ -2,10 +2,16 @@
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
+
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
- --disable-gnutls
+ --disable-scdaemon
make
make DESTDIR="$1" install