From 1612bca4c81981e67ead24eef7d8ae4301d8ecf4 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sun, 8 Sep 2019 18:55:31 +0200 Subject: [PATCH] wine build: add --build to ./configure: prevents cross-comp. misdetect from Electron-Cash/Electron-Cash/commit/e87021a78dbdeb50e9cfa51ddf0c1ef60c7688e0 --- contrib/build-wine/build-secp256k1.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 \