commit 1612bca4c81981e67ead24eef7d8ae4301d8ecf4
parent b381fd84fbf0fc4af4d3f294f81bea349b85e421
Author: SomberNight <somber.night@protonmail.com>
Date: Sun, 8 Sep 2019 18:55:31 +0200
wine build: add --build to ./configure: prevents cross-comp. misdetect
from Electron-Cash/Electron-Cash/commit/e87021a78dbdeb50e9cfa51ddf0c1ef60c7688e0
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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 \