From eed143dfa6af0e004d0239bd3297b30e45b8c4d3 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Sat, 29 Jul 2017 13:24:39 -0700 Subject: 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 Closes #635 --- rpm/generic/spl-kmod.spec.in | 4 ++-- rpm/redhat/spl-kmod.spec.in | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'rpm') 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 -- cgit v1.2.3