Mercurial > hg > quicktun
diff build.sh @ 24:dfac56805c77
Fixed support for shared NaCl library, explicitly refer to cryptographic primitives
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Mon, 28 Feb 2011 19:28:18 +0100 |
parents | bd4259de8459 |
children | 24e09485a8a3 |
line wrap: on
line diff
--- a/build.sh Mon Feb 28 16:32:48 2011 +0100 +++ b/build.sh Mon Feb 28 19:28:18 2011 +0100 @@ -25,7 +25,7 @@ if [ -z "${NACL_SHARED}" ]; then mkdir -p lib include echo Checking for NaCl library... - if [ -e lib/libnacl.a -a -e include/crypto_box.h -a -e include/crypto_box_curve25519xsalsa20poly1305.h -a -e include/crypto_scalarmult_curve25519.h ]; then + if [ -e lib/libnacl.a -a -e include/crypto_box_curve25519xsalsa20poly1305.h -a -e include/crypto_scalarmult_curve25519.h ]; then echo Found. else echo Not found, building... @@ -35,7 +35,6 @@ ./do cd ../../ cp tmp/nacl/build/*/lib/*/libnacl.a lib/ - cp tmp/nacl/build/*/include/*/crypto_box.h include/ cp tmp/nacl/build/*/include/*/crypto_box_curve25519xsalsa20poly1305.h include/ cp tmp/nacl/build/*/include/*/crypto_scalarmult_curve25519.h include/ echo Done. @@ -44,6 +43,7 @@ export LIBRARY_PATH="/usr/local/lib/:./lib/:${LIBRARY_PATH}" else echo Using shared NaCl library. + export CPATH="/usr/include/nacl/:${CPATH}" fi echo Building combined binary...