On Nov 13, 2013, at 5:14 PM, Ian Lance Taylor <i...@google.com> wrote: > On Wed, Nov 13, 2013 at 3:23 PM, Mike Stump <mikest...@comcast.net> wrote: >> On Nov 13, 2013, at 2:28 PM, Magnus Granberg <zo...@gentoo.org> wrote: >>> This patchset will add a new configure options --enable-default-pie. >> >> Ick. Would be nice to figure out on what systems one can do this and just >> do it without the configure option. Is there some reason that we need an >> option for it? > > I either don't understand the patch description or I don't understand > your comment. I think the patch is making -fPIE the default.
No, what the patch does is 'New configure option'. What I prefer is, the patch titled, 'make pie default'. The difference is the word option. > It is not normally the default. This option would change the default > behaviour of the compiler, so it doesn't really make sense to ask > whether we can just do it without the configure option. Sure it does. Explain how the default can't be changed otherwise. For example, we can change the default for -O, to be -O2. int optimize = 2; instead of int optimize = 0; One can add a configure option to select the default for -O, but, it isn't necessary to merely change the default.