diff --git a/zstd.spec b/zstd.spec index 0ee7b351756bf5c84aead2dd8d354df581ed9e58..7722ae77b5ca7c7886ac350d467056ff9b435248 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