diff --git a/openafs.changes b/openafs.changes index b9def9e..55417aa 100644 --- a/openafs.changes +++ b/openafs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 28 12:47:02 UTC 2018 - Guillaume GARDET + +- Fix build for aarch64 + ------------------------------------------------------------------- Wed Sep 12 12:37:15 UTC 2018 - Jan Engelhardt diff --git a/openafs.spec b/openafs.spec index 2aba070..21f433d 100644 --- a/openafs.spec +++ b/openafs.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # # needssslcertforbuild @@ -326,6 +326,7 @@ sysbase=arm %endif %ifarch aarch64 sysbase=arm64 +%define _arch arm64 %endif %ifarch s390x sysbase=s390 @@ -373,7 +374,9 @@ for flavor in %flavors_to_build; do ./configure --with-linux-kernel-build=/usr/src/linux-obj/%{_target_cpu}/$flavor --with-linux-kernel-headers=/usr/src/linux \ --disable-transarc-paths export EXTRA_CFLAGS='-DVERSION=\"%version\"' +%ifnarch aarch64 export KCFLAGS='-mindirect-branch=thunk-inline -mindirect-branch-register' +%endif export LINUX_MAKE_ARCH="ARCH=%{_arch}" make popd