1 |
On 12/05/2017 03:26 PM, Corbin wrote: |
2 |
> |
3 |
> In "packages" that throw out the "CFLAGS / CXXFLAGS" values in the |
4 |
> end-users "make.conf" and substitute their own ... how will that be handled? |
5 |
> |
6 |
|
7 |
The GCC ebuilds all use toolchain.eclass which is incomprehensible to |
8 |
me, but it looks like the default behavior for gcc-6.x is to pass |
9 |
"--enable-default-pie" and "--enable-default-ssp" to the build process |
10 |
of GCC itself. That changes the default behavior of GCC to (as the names |
11 |
say) enable PIE and SSP by default. |
12 |
|
13 |
Consequently, if a package ignores your CFLAGS, the PIE/SSP should still |
14 |
take effect, because GCC does them by default. Only a package that adds |
15 |
its own -no-pie flag (for example) would cause problems. |