You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
844 B
34 lines
844 B
7 years ago
|
#!/bin/bash
|
||
|
# heavily based on https://github.com/ofek/coincurve/blob/417e726f553460f88d7edfa5dc67bfda397c4e4a/.travis/build_windows_wheels.sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
build_dll() {
|
||
|
#sudo apt-get install -y mingw-w64
|
||
|
./autogen.sh
|
||
|
echo "LDFLAGS = -no-undefined" >> Makefile.am
|
||
|
./configure --host=$1 --enable-module-recovery --enable-experimental --enable-module-ecdh --disable-jni
|
||
|
make
|
||
|
}
|
||
|
|
||
|
|
||
|
cd /tmp/electrum-build
|
||
|
|
||
|
if [ ! -d secp256k1 ]; then
|
||
|
git clone https://github.com/bitcoin-core/secp256k1.git
|
||
|
cd secp256k1;
|
||
|
else
|
||
|
cd secp256k1
|
||
|
git pull
|
||
|
fi
|
||
|
|
||
|
git reset --hard 452d8e4d2a2f9f1b5be6b02e18f1ba102e5ca0b4
|
||
|
git clean -f -x -q
|
||
|
|
||
|
build_dll i686-w64-mingw32 # 64-bit would be: x86_64-w64-mingw32
|
||
|
mv .libs/libsecp256k1-0.dll libsecp256k1.dll
|
||
|
|
||
|
find -exec touch -d '2000-11-11T11:11:11+00:00' {} +
|
||
|
|
||
|
echo "building libsecp256k1 finished"
|