- Adjust specs for gcc-PIE to use -pie at link-time even when
-fPIE is set (but not -shared and friends). [bsc#1185348] OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc?expand=0&rev=102
This commit is contained in:
parent
f34a87065a
commit
5c0306a411
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 29 08:36:04 UTC 2021 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Adjust specs for gcc-PIE to use -pie at link-time even when
|
||||
-fPIE is set (but not -shared and friends). [bsc#1185348]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 12 11:42:44 UTC 2020 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
4
gcc.spec
4
gcc.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package gcc
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -486,7 +486,7 @@ dir=${dir%/cc1}
|
||||
mkdir -p $RPM_BUILD_ROOT/$dir
|
||||
cat > $RPM_BUILD_ROOT/$dir/defaults.spec <<EOF
|
||||
*default_spec:
|
||||
%%{pie|fpic|fPIC|fpie|fPIE|no-pie|fno-pic|fno-PIC|fno-pie|fno-PIE|shared|static|nostdlib|nodefaultlibs|nostartfiles:;:-fPIE -pie}
|
||||
%%{fpic|fPIC|fpie|fPIE|fno-pic|fno-PIC|fno-pie|fno-PIE:;:-fPIE}%%{fno-pic|fno-PIC|fno-pie|fno-PIE|pie|no-pie|shared|static|nostdlib|nodefaultlibs|nostartfiles:;: -pie}
|
||||
EOF
|
||||
|
||||
%post -n gcc-go
|
||||
|
Loading…
Reference in New Issue
Block a user