https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119440

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
There does not seem to be a way to build libgnat.a with -fPIC either, some
taget modules in Makefile.def add --with-pic as additional configure flags,
but I don't see libada checking this flag.  Trying to undig myself out of
the hole of the non-PIC host libgnat.a, first making sure that's PIC would
eventually fix my --enable-host-pie issue as well (without the need to
reverse engineer gnattool makefile stuff).

I'll note that it seems we somehow avoid using -pie for building and linking
of gcc/build/* executables which would suffer similar issues (they use
-static-libxxx for host GCC as well).

Reply via email to