- 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:
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
|
||||
|
Reference in New Issue
Block a user