!11 add _FORTIFY_SOURCE add enable check

From: @renxichen 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
This commit is contained in:
openeuler-ci-bot 2022-06-25 03:07:00 +00:00 committed by Gitee
commit a8cbaf2af4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: lz4 Name: lz4
Version: 1.9.3 Version: 1.9.3
Release: 2 Release: 3
Summary: Extremely fast compression algorithm Summary: Extremely fast compression algorithm
License: GPLv2+ and BSD License: GPLv2+ and BSD
@ -38,12 +38,15 @@ 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
%make_install LIBDIR=%{_libdir} PREFIX=%{_prefix} %make_install LIBDIR=%{_libdir} PREFIX=%{_prefix}
%check
make check
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
@ -69,6 +72,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-3
- add _FORTIFY_SOURCE add enable check
* Sat Jun 19 2021 shixuantong <shixuantong@huawei.com> - 1.9.3-2 * Sat Jun 19 2021 shixuantong <shixuantong@huawei.com> - 1.9.3-2
- fix CVE-2021-3520 - fix CVE-2021-3520