gccspecs/hardened-cc1: also pass -fPIE to cpp by default.
Note that -fPIE defines __PIC__ and __PIE__, so passing this on to pure cpp(1)/gcc -E executions is relevant. Found the hard way due to ccache breaking on i686 with precompiled headers which used the non-PIC definitions in cpuid.h since header precompilation doesn't read cc1_options.
This commit is contained in:
parent
7e72db86c6
commit
e58a7b24e9
|
@ -1,2 +1,5 @@
|
|||
*cpp_options:
|
||||
+ %{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}}
|
||||
|
||||
*cc1_options:
|
||||
+ %{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}}
|
||||
|
|
Loading…
Reference in New Issue