From e91d27b4da8ce6a6a9f524a21f601852591692bc8852eb27bde4b5239950ba0d Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Fri, 27 Mar 2020 05:50:39 +0000 Subject: [PATCH] Accepting request 788718 from home:mrostecki:branches:network:cryptocurrencies - Fix build on aarch64. OBS-URL: https://build.opensuse.org/request/show/788718 OBS-URL: https://build.opensuse.org/package/show/network:cryptocurrencies/bitcoin?expand=0&rev=29 --- bitcoin.changes | 5 +++++ bitcoin.spec | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/bitcoin.changes b/bitcoin.changes index f5a8402..db64e10 100644 --- a/bitcoin.changes +++ b/bitcoin.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 26 20:57:22 UTC 2020 - Michał Rostecki + +- Fix build on aarch64. + ------------------------------------------------------------------- Wed Mar 11 13:25:45 UTC 2020 - Michał Rostecki diff --git a/bitcoin.spec b/bitcoin.spec index 81caa0b..6193da8 100644 --- a/bitcoin.spec +++ b/bitcoin.spec @@ -176,7 +176,19 @@ autoreconf -fiv export CXXFLAGS="%{optflags} -fPIE -fPIC" export CFLAGS="%{optflags} -fPIE -fPIC" export LDFLAGS="-pie" + +# Autodetecting if assembly optimizazions for secp256k1 can be used does not +# work well on non-x86_64 architectures, like i.e. aarch64, which results in +# build errors. At the same time, x86_64 is the only architecture for which +# assembly is properly supported (ARM assembly optimizations are still +# experimental). Let's just disable asm for all the other architectures until +# that doesn't change. %configure \ +%ifarch x86_64 + --with-asm=auto \ +%else + --with-asm=no \ +%endif --with-cli=yes \ --with-daemon=yes \ --with-gui=qt5 \