Skip to content

Commit eed143d

Browse files
authored
Fix aarch64 build
Add aarch64 to the list of architecture which do not sanitize the LDFLAGS from the environment. See e0aacd9 for details. Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#635
1 parent 1f2671b commit eed143d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rpm/generic/spl-kmod.spec.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ BuildRequires: %{_bindir}/kmodtool
5353
%endif
5454
%endif
5555

56-
# LDFLAGS are not sanitized by arch/powerpc/Makefile (unlike other arches)
57-
%ifarch ppc ppc64 ppc64le
56+
# LDFLAGS are not sanitized by arch/*/Makefile for these architectures.
57+
%ifarch ppc ppc64 ppc64le aarch64
5858
%global __global_ldflags %{nil}
5959
%endif
6060

rpm/redhat/spl-kmod.spec.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2222
Requires: @PACKAGE@ = %{version}\n\
2323
Conflicts: @PACKAGE@-dkms\n\n" > %{_sourcedir}/kmod-preamble)
2424

25-
# LDFLAGS are not sanitized by arch/powerpc/Makefile (unlike other arches)
26-
%ifarch ppc ppc64 ppc64le
25+
# LDFLAGS are not sanitized by arch/*/Makefile for these architectures.
26+
%ifarch ppc ppc64 ppc64le aarch64
2727
%global __global_ldflags %{nil}
2828
%endif
2929

0 commit comments

Comments
 (0)