https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71934
--- Comment #13 from Iain Sandoe <iains at gcc dot gnu.org> --- Have two patches that implement "--enable-pie-tools" to do this as noted they need some polish and I suspect that we need a "PIEflag.m4" modelled in the same way as PICflag.m4 (which covers both enable and disable) instead of hard-wiring -fno-PIE etc. into the main configure. I will try to update the patches over the next few days and re-post them.