add _FORTIFY_SOURCE add enable check

This commit is contained in:
rwx403335 2022-06-20 17:09:48 +08:00
parent 575ac7aa65
commit b894850fd7

View File

@ -1,6 +1,6 @@
Name: lz4 Name: lz4
Version: 1.9.3 Version: 1.9.3
Release: 3 Release: 4
Summary: Extremely fast compression algorithm Summary: Extremely fast compression algorithm
License: GPLv2+ and BSD License: GPLv2+ and BSD
@ -38,7 +38,7 @@ applications using liblz4 library.
cp %{_builddir}/%{name}-%{version}/lib/LICENSE %{_builddir}/%{name}-%{version}/LICENSE-lib cp %{_builddir}/%{name}-%{version}/lib/LICENSE %{_builddir}/%{name}-%{version}/LICENSE-lib
%build %build
export MOREFLAGS="-g" export MOREFLAGS="-g -D_FORTIFY_SOURCE=2 -O2"
%make_build %make_build
%install %install
@ -69,6 +69,9 @@ export MOREFLAGS="-g"
%{_mandir}/man1/unlz4.1* %{_mandir}/man1/unlz4.1*
%changelog %changelog
* Mon Jun 20 2022 renhongxun <renhongxun@h-partners.com> - 1.9.3-4
- add _FORTIFY_SOURCE add enable check
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.9.3-3 * Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.9.3-3
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git - DESC: delete -Sgit from %autosetup, and delete BuildRequires git