modified get-libsnark for successful compiling

This commit is contained in:
Ariel Gabizon 2017-04-07 14:45:18 +03:00
parent 952097ecb4
commit 9439df1227
1 changed files with 9 additions and 9 deletions

View File

@ -9,12 +9,12 @@ set -e
LIBSNARK_SRC=${LIBSNARK_SRC:-https://github.com/scipr-lab/libsnark}
CURVE=${CURVE:-BN128}
CURVE=${CURVE:-ALT_BN128}
LIBSNARK_FLAGS="$LIBSNARK_FLAGS NO_SUPERCOP=1 NO_GTEST=1 NO_DOCS=1 CURVE=$CURVE"
if [[ `uname -s` == "Darwin" ]]; then
LIBSNARK_FLAGS="$LIBSNARK_FLAGS NO_PROCPS=1"
fi
LIBSNARK_FLAGS="$LIBSNARK_FLAGS NO_SUPERCOP=1 NO_GTEST=1 NO_DOCS=1 CURVE=$CURVE NO_PROCPS=1"
# if [[ `uname -s` == "Darwin" ]]; then
# LIBSNARK_FLAGS="$LIBSNARK_FLAGS NO_PROCPS=1"
# fi
set -x
@ -30,10 +30,10 @@ cd $DEPSRC
[ ! -d libsnark ] && git clone $LIBSNARK_SRC libsnark
cd libsnark
git pull
if [ "$CURVE" == "BN128" ]; then
# TODO: submit -fPIC patch to ate-pairing
INC_DIR=-fPIC ./prepare-depends.sh
fi
#if [ "$CURVE" == "BN128" ]; then
# # TODO: submit -fPIC patch to ate-pairing
# INC_DIR=-fPIC ./prepare-depends.sh
#fi
make clean
make lib $LIBSNARK_FLAGS
make install PREFIX=$DEPINST $LIBSNARK_FLAGS