add build option PIE
This commit is contained in:
parent
c27e2484f0
commit
64acbd0433
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user