- Fix gcc-PIE spec to properly honor -no-pie at link time.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc?expand=0&rev=85
This commit is contained in:
Richard Biener 2018-06-05 10:20:19 +00:00 committed by Git OBS Bridge
parent a30b055807
commit 2e7ee50ecb
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 5 10:19:50 UTC 2018 - rguenther@suse.com
- Fix gcc-PIE spec to properly honor -no-pie at link time.
-------------------------------------------------------------------
Tue Mar 6 10:13:50 UTC 2018 - rguenther@suse.com

View File

@ -423,7 +423,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|fno-pic|fno-PIC|fno-pie|fno-PIE|shared|static|nostdlib|nodefaultlibs|nostartfiles:;:-fPIE -pie}
%%{pie|fpic|fPIC|fpie|fPIE|no-pie|fno-pic|fno-PIC|fno-pie|fno-PIE|shared|static|nostdlib|nodefaultlibs|nostartfiles:;:-fPIE -pie}
EOF
%files