From 6f128cdf8bb3f33e58af5392d831129a9fb46b47 Mon Sep 17 00:00:00 2001 From: lingsheng <860373352@qq.com> Date: Wed, 29 May 2024 03:32:01 +0000 Subject: [PATCH] add build option PIE (cherry picked from commit 64acbd04333f06033f3c4661d80e4e54467b6bdd) --- webkit2gtk3.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/webkit2gtk3.spec b/webkit2gtk3.spec index dc60c28..eb80ad1 100644 --- a/webkit2gtk3.spec +++ b/webkit2gtk3.spec @@ -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 - 2.36.3-5 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:add build option PIE + * Mon May 29 2023 zhangpan - 2.36.3-4 - fix CVE-2023-28204 CVE-2023-32373 CVE-2023-32409 -- Gitee