diff --git a/rpm/generic/zfs-kmod.spec.in b/rpm/generic/zfs-kmod.spec.in index 2f580e063c..4518dc954d 100644 --- a/rpm/generic/zfs-kmod.spec.in +++ b/rpm/generic/zfs-kmod.spec.in @@ -86,8 +86,8 @@ BuildRequires: kmod-spl-devel = %{version} %global KmodsMetaRequires spl-kmod %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/zfs-kmod.spec.in b/rpm/redhat/zfs-kmod.spec.in index ae7e95d63e..26d5b60540 100644 --- a/rpm/redhat/zfs-kmod.spec.in +++ b/rpm/redhat/zfs-kmod.spec.in @@ -21,8 +21,8 @@ Requires: spl-kmod\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