On Thu, Feb 19, 2015 at 11:23:18AM +0100, Jakub Jelinek wrote: > On Thu, Feb 19, 2015 at 10:11:07AM +0000, Richard W.M. Jones wrote: > > > > I'm still no closer to being able to fix the problem. > > > > I have to add -fPIE (or is that -pie or -fpie or -DPIE) to every > > executable? Upstream? Will that break on some platforms/architectures? > > It really should be just about using the %{optflags} and > %{__global_ldflags} consistently, unless somebody introduced recently a > redhat-rpm-config bug. > > > And indeed what is the difference between -fPIE / -pie / -fpie / > > -fPIC / -fpic / -DPIC / etc? Where is this stuff documented? > > Have you tried something so obvious as man gcc ? info gcc, of course yes. -DPIC is not documented at all, and the various pie/pic options are obscure to say the least. The GCC 5 documentation is not online, but here is what GCC 4.9.2 has to say: https://gcc.gnu.org/onlinedocs/gcc-4.9.2/gcc/Code-Gen-Options.html#Code-Gen-Options#index-PIC-2613 I've written compilers (two of them, from scratch) and this stuff barely makes sense. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct