diff options
Diffstat (limited to 'extra/gnupg2/build')
-rwxr-xr-x | extra/gnupg2/build | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/extra/gnupg2/build b/extra/gnupg2/build index da3d3351..5ad311a1 100755 --- a/extra/gnupg2/build +++ b/extra/gnupg2/build @@ -1,13 +1,17 @@ #!/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 + --disable-scdaemon make make DESTDIR="$1" install |