Mac OS X El Captain
Xcode
MacPorts: gsed, gawk
GMP: 6.1.0 from https://gmplib.org/
libidn: 1.32 from http://www.gnu.org/software/libidn/
nettle: 3.1 from http://www.lysator.liu.se/~nisse/nettle/
libtasn1: 4.7 https://www.gnu.org/software/libtasn1/
p11-kit: 0.23.2 from http://p11-glue.freedesktop.org/p11-kit.html
GnuTLS: 3.4.7 from http://www.gnutls.org/
libunbound: 1.5.7 from https://unbound.net
Install path: /opt/gnutls
Build GMP
1 2 |
CC=clang CXX=clang++ ./configure --prefix=/opt/gnutls/; make -j 8 install |
Build libidn
1 2 |
CC=clang CXX=clang++ ./configure --prefix=/opt/gnutls/; make -j 8 install |
Build libtasn1
1 2 |
CC=clang CXX=clang++ ./configure --prefix=/opt/gnutls/; make -j 8 install |
Build nettle
1 2 |
CC=clang CXX=clang++ CFLAGS="-I/opt/gnutls/include" LDFLAGS="-L/opt/gnutls/lib" ./configure --prefix=/opt/gnutls/ --enable-x86-aesni make -j 8 install |
Build p11-kit
1 2 |
LIBTASN1_CFLAGS='-I/opt/gnutls/include' LIBTASN1_LIBS='-L/opt/gnutls/lib -ltasn1' CC=clang CXX=clang ./configure --prefix=/opt/gnutls/ --with-trust-paths=/usr/lib/libtspi.so.1 make -j 8 install |
Build libunbound
1 2 |
CC=clang CXX=clang++ ./configure --with-libunbound-only --prefix=/opt/gnutls --disable-flto make -j 8 install |
Build GnuTLS
1 2 3 4 5 6 |
sudo ln -s /Applications/Xcode.app/Contents/Developer /Developer export PKG_CONFIG_PATH=/opt/gnutls/lib/pkgconfig/ CC=clang CXX=clang++ CFLAGS=" -I/opt/gnutls/include -I/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/" LDFLAGS="-L/opt/gnutls/lib -L/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/" CXXFLAGS="${CFLAGS}" ./configure --prefix=/opt/gnutls sudo make -j 8 install |
If your GnuTLS is cloned from git, install libtool and autogen, autoconf, automake,
and configure with –disable-doc
Trouble Shooting
Wait……..
Build GnuTLS 3.4.x on OS X by @sskaje: https://sskaje.me/2015/12/build-gnutls-3-4-x-os/
Incoming search terms:
Link to this post!