From 43bfc59a5fd5a2504a81eb216d0e6802c2f782ee Mon Sep 17 00:00:00 2001 From: rwx403335 Date: Mon, 20 Jun 2022 17:07:22 +0800 Subject: [PATCH] add _FORTIFY_SOURCE add enable check --- lz4.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lz4.spec b/lz4.spec index 986b704..aa1f2fe 100644 --- a/lz4.spec +++ b/lz4.spec @@ -1,6 +1,6 @@ Name: lz4 Version: 1.9.3 -Release: 2 +Release: 3 Summary: Extremely fast compression algorithm License: GPLv2+ and BSD @@ -38,12 +38,15 @@ applications using liblz4 library. cp %{_builddir}/%{name}-%{version}/lib/LICENSE %{_builddir}/%{name}-%{version}/LICENSE-lib %build -export MOREFLAGS="-g" +export MOREFLAGS="-g -D_FORTIFY_SOURCE=2 -O2" %make_build %install %make_install LIBDIR=%{_libdir} PREFIX=%{_prefix} +%check +make check + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -69,6 +72,9 @@ export MOREFLAGS="-g" %{_mandir}/man1/unlz4.1* %changelog +* Mon Jun 20 2022 renhongxun - 1.9.3-3 +- add _FORTIFY_SOURCE add enable check + * Sat Jun 19 2021 shixuantong - 1.9.3-2 - fix CVE-2021-3520 -- Gitee