On Fri, 2016-12-16 at 10:51:53 +0100, Bálint Réczey wrote: > 2016-12-15 23:26 GMT+01:00 Matthias Klose <d...@debian.org>: > > Well, Balint asked to enable the pie defaults in GCC. I wasn't aware that > > more > > work regarding the specs was needed. Ideally these changes should be done > > in > > one place, not in two. > > Yes, I tested and asked for enabling PIE in GCC because this is the low risk > method. It is used by Ubuntu and GCC parameter parsing makes enabling it > from dpkg basically does not work. Setting it through spec files is fragile > and > it is not tested well.
The -specs files should be pretty robust now. Anything not building with those would IMO be broken with PIE by default from gcc anyway. And In the end gcc also drives its frontends via specs files internally. > Please simply drop using spec files for both setting and disabling PIE. Sorry but dropping the -specs files completely, even if honoring Matthias request, would be unnacceptable, as I've mentioned before multiple times now. Maintainers should be able to disable PIE, not doing so would leave them with the job of figuring out how to do that, which might mean having to extensively patch the build system or similar. Making maintainers work harder just because, is not acceptable. At that point I'd rather we disable PIE globally, really. Regards, Guillem