SomberNight
7 years ago
5 changed files with 42 additions and 1 deletions
@ -0,0 +1,33 @@ |
|||
#!/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" |
Loading…
Reference in new issue