aboutsummaryrefslogtreecommitdiff
path: root/extra/gnutls/build
blob: 5bc90d9accf6d0213bff162221fb11a556e98b41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh -e

# We have multiple issues thanks to p11-kit.
# - p11-kit does not support static linking (instead of writing proper code that
#   just works they have decided to go out of their way to make sure you can't
#   statically link it), so if you build the static gnutls library with it, you
#   can link nothing to gnutls statically.
# - If you build gnutls without p11-kit, you can't compile glib-networking as it
#   depends on the PKCS#11 API in gnutls that they don't even have enabled by
#   default.
# - If libressl was fully compatible with openssl, we wouldn't have to use
#   gnutls for glib-networking, therefore removing the p11-kit dependency.

./configure \
    --prefix=/usr \
    --disable-nls \
    --with-nettle-mini \
    --with-included-libtasn1 \
    --with-included-unistring \
    --disable-guile \
    --disable-static

make
make DESTDIR="$1" install

./configure \
    --prefix=/usr \
    --disable-nls \
    --with-nettle-mini \
    --with-included-libtasn1 \
    --with-included-unistring \
    --disable-guile \
    --enable-static \
    --disable-shared \
    --without-p11-kit

make
make DESTDIR="$1" install