!93 add build option PIE

From: @ultra_planet 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
This commit is contained in:
openeuler-ci-bot 2024-06-03 08:41:05 +00:00 committed by Gitee
commit 31e728d029
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -9,7 +9,7 @@
#Basic Information
Name: webkit2gtk3
Version: 2.36.3
Release: 4
Release: 5
Summary: GTK+ Web content engine library
License: LGPLv2
URL: https://www.webkitgtk.org/
@ -125,6 +125,9 @@ rm -rf Source/ThirdParty/qunit/
%build
%global optflags %(echo %{optflags} -Wl,--no-keep-memory | sed 's/-g /-g1 /')
export CFLAGS="%{optflags} -fPIE -pie"
export CXXFLAGS="%{optflags} -fPIE -pie"
export LDFLAGS="%{build_ldflags} -pie"
mkdir -p %{_target_platform}
pushd %{_target_platform}
%cmake \
@ -219,6 +222,12 @@ done
%endif
%changelog
* Fri May 31 2024 lingsheng <lingsheng1@h-partners.com> - 2.36.3-5
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add build option PIE
* Mon May 29 2023 zhangpan<zhangpan103@h-partners.com> - 2.36.3-4
- fix CVE-2023-28204 CVE-2023-32373 CVE-2023-32409