wine build: add --build to ./configure: prevents cross-comp. misdetect

from Electron-Cash/Electron-Cash/commit/e87021a78dbdeb50e9cfa51ddf0c1ef60c7688e0
This commit is contained in:
SomberNight 2019-09-08 18:55:31 +02:00
parent b381fd84fb
commit 1612bca4c8
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -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 \