summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2017-07-29 13:24:39 -0700
committerGitHub <[email protected]>2017-07-29 13:24:39 -0700
commiteed143dfa6af0e004d0239bd3297b30e45b8c4d3 (patch)
tree4bc9b5ce7faedc9f8d49bfe905f562bdd9d59de7
parent1f2671b9c9108add67bae998e7a4e41352c2a12f (diff)
Fix aarch64 build
Add aarch64 to the list of architecture which do not sanitize the LDFLAGS from the environment. See e0aacd9b for details. Signed-off-by: Brian Behlendorf <[email protected]> Closes #635
-rw-r--r--rpm/generic/spl-kmod.spec.in4
-rw-r--r--rpm/redhat/spl-kmod.spec.in4
2 files changed, 4 insertions, 4 deletions
diff --git a/rpm/generic/spl-kmod.spec.in b/rpm/generic/spl-kmod.spec.in
index a5a0d9d64..c33c25069 100644
--- a/rpm/generic/spl-kmod.spec.in
+++ b/rpm/generic/spl-kmod.spec.in
@@ -53,8 +53,8 @@ BuildRequires: %{_bindir}/kmodtool
%endif
%endif
-# LDFLAGS are not sanitized by arch/powerpc/Makefile (unlike other arches)
-%ifarch ppc ppc64 ppc64le
+# LDFLAGS are not sanitized by arch/*/Makefile for these architectures.
+%ifarch ppc ppc64 ppc64le aarch64
%global __global_ldflags %{nil}
%endif
diff --git a/rpm/redhat/spl-kmod.spec.in b/rpm/redhat/spl-kmod.spec.in
index cab72a7c7..4e2a9f955 100644
--- a/rpm/redhat/spl-kmod.spec.in
+++ b/rpm/redhat/spl-kmod.spec.in
@@ -22,8 +22,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: @PACKAGE@ = %{version}\n\
Conflicts: @PACKAGE@-dkms\n\n" > %{_sourcedir}/kmod-preamble)
-# LDFLAGS are not sanitized by arch/powerpc/Makefile (unlike other arches)
-%ifarch ppc ppc64 ppc64le
+# LDFLAGS are not sanitized by arch/*/Makefile for these architectures.
+%ifarch ppc ppc64 ppc64le aarch64
%global __global_ldflags %{nil}
%endif