diff --git a/contrib/build-wine/build-secp256k1.sh b/contrib/build-wine/build-secp256k1.sh index b7cde77f1..8c7f1c40e 100755 --- a/contrib/build-wine/build-secp256k1.sh +++ b/contrib/build-wine/build-secp256k1.sh @@ -16,8 +16,12 @@ build_dll() { export SOURCE_DATE_EPOCH=1530212462 echo "LDFLAGS = -no-undefined" >> Makefile.am ./autogen.sh + # Note: set both --build and --host when running configure + # Otherwise weird voodoo magic happens with Docker and Wine. + # https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Hosts-and-Cross_002dCompilation.html LDFLAGS="-Wl,--no-insert-timestamp" ./configure \ --host=$1 \ + --build=x86_64-pc-linux-gnu \ --enable-module-recovery \ --enable-experimental \ --enable-module-ecdh \