[packages/zstd] disable asm on non-x86_64 to fix exec stack; rel 2
atler
atler at pld-linux.org
Wed Dec 29 23:43:09 CET 2021
commit b46fcfe9f8699ec8d1041d77902cdf6b2b798e5a
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Dec 29 22:38:57 2021 +0100
disable asm on non-x86_64 to fix exec stack; rel 2
see https://github.com/facebook/zstd/issues/2963
zstd.spec | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/zstd.spec b/zstd.spec
index c5f9359..8584a34 100644
--- a/zstd.spec
+++ b/zstd.spec
@@ -1,8 +1,18 @@
+#
+# Conditional build:
+%bcond_without asm # disable assembler
+
+# workaround executable stack on non-x86_64
+# https://github.com/facebook/zstd/issues/2963
+%ifnarch %{x8664}
+%undefine with_asm
+%endif
+
Summary: Zstandard - fast lossless compression algorithm
Summary(pl.UTF-8): Zstandard - szybki, bezstratny algorytm kompresji
Name: zstd
Version: 1.5.1
-Release: 1
+Release: 2
License: BSD
Group: Libraries
#Source0Download: https://github.com/facebook/zstd/releases
@@ -63,7 +73,8 @@ CFLAGS="%{rpmcflags} %{rpmcppflags} %{?archcflags}" \
CXXFLAGS="%{rpmcxxflags} %{rpmcppflags}" \
LDFLAGS="%{rpmldflags}" \
%{__make} allmost manual \
- V=1
+ V=1 \
+ %{!?with_asm:ZSTD_NO_ASM=1}
%install
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/zstd.git/commitdiff/b46fcfe9f8699ec8d1041d77902cdf6b2b798e5a
More information about the pld-cvs-commit
mailing list