!202 enable -fPIE compilation options

From: @zhangqiumiao 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
This commit is contained in:
openeuler-ci-bot 2022-12-13 08:36:32 +00:00 committed by Gitee
commit 75d90c391c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 11 additions and 3 deletions

View File

@ -9,11 +9,13 @@
%global _configure ../configure
%if %{?_with_ccache: 1}%{?!_with_ccache: 0}
%global cc_equals CC=/usr/%{_lib}/ccache/gcc
%global ccpath /usr/%{_lib}/ccache/gcc
%else
%global cc_equals %{nil}
%global ccpath %{__cc}
%endif
%global cc_equals "CC=%{ccpath} -fPIE"
%global cflags_sed \\\
sed \\\
-e 's/-O. //g' \\\

View File

@ -14,7 +14,7 @@
Name: grub2
Epoch: 1
Version: 2.06
Release: 15
Release: 16
Summary: Bootloader with support for Linux, Multiboot and more
License: GPLv3+
URL: http://www.gnu.org/software/grub/
@ -437,6 +437,12 @@ fi
%{_datadir}/man/man*
%changelog
* Mon Dec 12 2022 zhangqiumiao <zhangqiumiao1@huawei.com> - 1:2.06-16
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:enable -fPIE compilation options
* Fri Nov 18 2022 zhangqiumiao <zhangqiumiao1@huawei.com> - 1:2.06-15
- Type:bugfix
- CVE:CVE-2022-2601 CVE-2022-3775