Gentoo Archives: gentoo-user

From: Michael Orlitzky <mjo@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Again, emerge -e @world related questions...
Date: Tue, 05 Dec 2017 20:45:30
Message-Id: ed35024d-b9be-17b9-75a6-ce405a10440e@gentoo.org
In Reply to: Re: [gentoo-user] Again, emerge -e @world related questions... by Corbin
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.

Replies

Subject Author
Re: [gentoo-user] Again, emerge -e @world related questions... Mick <michaelkintzios@×××××.com>
Re: [gentoo-user] Again, emerge -e @world related questions... Corbin <corbinbird@×××××××.net>