doc/build-netpgp.md
author Damiano Boppart <damiano@pep-security.net>
Tue, 29 Aug 2017 16:11:21 +0200
branchENGINE-237
changeset 2018 479c39e0c729
parent 2014 doc/build-ios.md@4b6659d17b61
child 2039 b88e62c9ea72
permissions -rw-r--r--
Remove incorrect license information, remove defunct iOS build instructions
     1 # Using NetPGP instead of GnuPG
     2 ## Prepare
     3 
     4 Get OpenSSL and build/install it as shared library.
     5 
     6 ```
     7 wget https://www.openssl.org/source/old/1.0.1/openssl-1.0.1u.tar.gz
     8 tar xvfz openssl-1.0.1u.tar.gz
     9 cd openssl-1.0.1u
    10 ./Configure darwin64-x86_64-cc --prefix=$HOME shared
    11 make install
    12 ```
    13 
    14 Get and autoconf NetPGP
    15 
    16 ```
    17 cd $SRC
    18 hg clone https://cacert.pep.foundation/dev/repos/netpgp-et/
    19 cd netpgp-et
    20 autoreconf -i
    21 ```
    22 
    23 ## Build
    24 
    25 Important : LDFLAGS is set to help finding OpenSSL shared lib. If not set,
    26 system's default libcrypto may silently be used instead, causing memory
    27 corruption or crash at runtime.
    28 
    29 ```
    30 mkdir netpgp_debug
    31 cd netpgp_debug
    32 $SRC/netpgp-et/configure --with-openssl=$HOME --prefix=$HOME CPPFLAGS=-DDEBUG CXXFLAGS="-g -O0" LDFLAGS="-L${HOME}/lib"
    33 make
    34 make install
    35 ```