diff options
-rwxr-xr-x | configure | 5 | ||||
-rw-r--r-- | curvetun/Makefile | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -119,6 +119,10 @@ EOF NACL_LIB_DIR="/usr/lib" fi + if [ -z $NACL_LIB ] ; then + NACL_LIB="nacl" + fi + LDFLAGS="-L $NACL_LIB_DIR" CFLAGS="-I $NACL_INC_DIR" @@ -131,6 +135,7 @@ EOF echo "[YES]" echo "CONFIG_NACL_INC_DIR:=$NACL_INC_DIR" >> Config echo "CONFIG_NACL_LIB_DIR:=$NACL_LIB_DIR" >> Config + echo "CONFIG_NACL_LIB:=$NACL_LIB" >> Config fi } diff --git a/curvetun/Makefile b/curvetun/Makefile index 6d996b0..eeebd11 100644 --- a/curvetun/Makefile +++ b/curvetun/Makefile @@ -1,4 +1,4 @@ -curvetun-libs = -lnacl \ +curvetun-libs = -l${CONFIG_NACL_LIB} \ -lpthread curvetun-objs = xmalloc.o \ |