From 00bb6960cfd28844d2c393bf40f54e9feae6fe310f3ddd8326885b1e7d8fb24b Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 9 Jul 2021 07:44:17 +0000 Subject: [PATCH] - With gcc-PIE add -pie even when -fPIC is specified but we are not linking a shared library. [boo#1185348] OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc?expand=0&rev=109 --- gcc.changes | 6 ++++++ gcc.spec | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc.changes b/gcc.changes index 5d5cb8f..ce594f6 100644 --- a/gcc.changes +++ b/gcc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jul 9 07:41:14 UTC 2021 - Richard Biener + +- With gcc-PIE add -pie even when -fPIC is specified but we are + not linking a shared library. [boo#1185348] + ------------------------------------------------------------------- Wed May 5 12:48:07 UTC 2021 - Callum Farmer diff --git a/gcc.spec b/gcc.spec index 959a020..80d1bec 100644 --- a/gcc.spec +++ b/gcc.spec @@ -486,7 +486,7 @@ dir=${dir%/cc1} mkdir -p $RPM_BUILD_ROOT/$dir cat > $RPM_BUILD_ROOT/$dir/defaults.spec <