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 \