On 08/16/2011 09:44 AM, Rainer Orth wrote:
> So passing PICFLAG down to the gcc/ada/gcc-interface Makefile and not
> just via libada/Makefile is indeed important.
This seems to be easy: unless I'm mistaken, it should suffice to just
call GCC_PICFLAG in gcc/configure.ac and substitute the result in
gcc/ada/gcc-interface/Makefile.in. What's the best way to test this?
I've often had serious trouble when I tried to run make
gnatlib/gnatlib-shared in gcc/ada.
No, you need GCC_PICFLAG_FOR_TARGET that dispatches on $target rather
than $host.
But it is still easy.
OTOH, it seems you're fine with the general approach of only passing
PICFLAG to build gnatlib, not everything else that happens to reside in
TARGET_LIBGCC2_CFLAGS?
We can always try, and later introduce TARGET_GNATLIB_CFLAGS if it turns
out to be a problem.
Paolo