summaryrefslogtreecommitdiffstats
path: root/rpm/generic
diff options
context:
space:
mode:
Diffstat (limited to 'rpm/generic')
-rw-r--r--rpm/generic/zfs-kmod.spec.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/rpm/generic/zfs-kmod.spec.in b/rpm/generic/zfs-kmod.spec.in
index 9d10e6075..b635e6ea7 100644
--- a/rpm/generic/zfs-kmod.spec.in
+++ b/rpm/generic/zfs-kmod.spec.in
@@ -86,6 +86,11 @@ 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
+%global __global_ldflags %{nil}
+%endif
+
%if 0%{?fedora} >= 17
%define prefix /usr
%endif