From 8d6cefa5f0508b5eeafbd5db635a0130192b0607 Mon Sep 17 00:00:00 2001 From: VanBreuk Date: Sat, 5 Mar 2016 02:02:28 +0100 Subject: [PATCH] Update scripts to automate libsecp256k1 dependency build and inclusion --- iguana/m_unix | 2 +- m_onetime | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/iguana/m_unix b/iguana/m_unix index 09aba0600..60203c844 100755 --- a/iguana/m_unix +++ b/iguana/m_unix @@ -1,2 +1,2 @@ git pull -gcc -o ../agents/iguana -O2 *.c ../agents/libcrypto777.a -lcurl -lssl -lcrypto -lpthread -lm +gcc -o ../agents/iguana -O2 *.c ../agents/libcrypto777.a -lcurl -lssl -lcrypto -lpthread -lm ../includes/libsecp256k1.a -lgmp diff --git a/m_onetime b/m_onetime index e8e7aeaf0..7b99fb175 100755 --- a/m_onetime +++ b/m_onetime @@ -1,3 +1,17 @@ +#!/bin/bash + +if [ ! -f includes/secp256k1 ]; then +echo Cloning and Building secp256k1 library... +cd .. +git clone https://github.com/ElementsProject/secp256k1-zkp.git +cd secp256k1-zkp +./autogen.sh +./configure --enable-experimental --enable-module-ecdh --enable-module-schnorr --enable-module-rangeproof +make +cp .libs/libsecp256k1.a ../SuperNET/includes/ +cd ../SuperNET +fi + git pull cd crypto777 ./$1