s390x implements zlib/dfltcc dedicated instruction to improve
compression speed and ratio. Switching from 'makedumpfile -l' to
'makedumpfile -c' to benifit from this feature.
Signed-off-by: Pingfan Liu <piliu(a)redhat.com>
---
v1 -> v2:
move 'sed' from %post to %build section
kexec-tools.spec | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/kexec-tools.spec b/kexec-tools.spec
index 6673000..1c4c0cf 100644
--- a/kexec-tools.spec
+++ b/kexec-tools.spec
@@ -144,6 +144,12 @@ autoreconf
%endif
--sbindir=/usr/sbin
rm -f kexec-tools.spec.in
+
+# s390 uses zlib/dfltcc as default to improve compression speed and ratio
+%ifarch s390x
+sed -i 's/makedumpfile -l/makedumpfile -c/' %{SOURCE8}
+%endif
+
# setup the docs
cp %{SOURCE10} .
cp %{SOURCE11} .
--
2.31.1
Show replies by date