From 73f56c873cccdf0db991af998a78e76c645b8955 Mon Sep 17 00:00:00 2001 From: "taifu.gc" Date: Thu, 1 Dec 2022 17:03:22 +0800 Subject: [PATCH] Disable execstack on loongarch64 arch --- zstd.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/zstd.spec b/zstd.spec index 0ee7b35..7722ae7 100644 --- a/zstd.spec +++ b/zstd.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.2 + # enable .lz4 support by default %bcond_without lz4 @@ -7,7 +9,6 @@ # enable .gz support by default %bcond_without zlib -%define anolis_release .0.1 %if 0%{?rhel} && 0%{?rhel} <= 6 # gcc-4.4 is currently too old to compile pzstd %bcond_with pzstd @@ -62,7 +63,9 @@ BuildRequires: gcc-c++ %if %{with zlib} BuildRequires: zlib-devel %endif +%ifnarch loongarch64 BuildRequires: execstack +%endif Requires: glibc Provides: /usr/bin/zstd @@ -120,7 +123,9 @@ export CXXFLAGS="$RPM_OPT_FLAGS" %endif %check +%ifnarch loongarch64 execstack lib/libzstd.so.1 +%endif export CFLAGS="$RPM_OPT_FLAGS" export LDFLAGS="$RPM_LD_FLAGS" @@ -177,6 +182,9 @@ install -D -m644 programs/%{name}.1 %{buildroot}%{_mandir}/man1/p%{name}.1 %ldconfig_scriptlets -n lib%{name} %changelog +* Tue Nov 29 2022 Chang Gao - 1.5.1-2.0.2 +- Disable execstack on loongarch64 architecture + * Tue Nov 29 2022 Liwei Ge - 1.5.1-2.0.1 - Add doc sub package -- Gitee