From b894850fd7632ef9c4f98b1c658868fac2dc8209 Mon Sep 17 00:00:00 2001 From: rwx403335 Date: Mon, 20 Jun 2022 17:09:48 +0800 Subject: [PATCH] add _FORTIFY_SOURCE add enable check --- lz4.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lz4.spec b/lz4.spec index 2339cae..07ac607 100644 --- a/lz4.spec +++ b/lz4.spec @@ -1,6 +1,6 @@ Name: lz4 Version: 1.9.3 -Release: 3 +Release: 4 Summary: Extremely fast compression algorithm License: GPLv2+ and BSD @@ -38,7 +38,7 @@ 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 @@ -69,6 +69,9 @@ export MOREFLAGS="-g" %{_mandir}/man1/unlz4.1* %changelog +* Mon Jun 20 2022 renhongxun - 1.9.3-4 +- add _FORTIFY_SOURCE add enable check + * Fri Jul 30 2021 chenyanpanHW - 1.9.3-3 - DESC: delete -Sgit from %autosetup, and delete BuildRequires git -- Gitee