]> git.pld-linux.org Git - packages/zstd.git/commitdiff
disable asm on non-x86_64 to fix exec stack; rel 2 auto/th/zstd-1.5.1-2
authorJan Palus <atler@pld-linux.org>
Wed, 29 Dec 2021 21:38:57 +0000 (22:38 +0100)
committerJan Palus <atler@pld-linux.org>
Wed, 29 Dec 2021 21:38:57 +0000 (22:38 +0100)
see https://github.com/facebook/zstd/issues/2963

zstd.spec

index c5f9359cd7dbb1356fddd11221dcf3671e9ba365..8584a345f0ca54e57017fc871bc939233138ee4e 100644 (file)
--- 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
This page took 0.092875 seconds and 4 git commands to generate.