On 08/10/2011 01:42 PM, Rainer Orth wrote:
* Centralize the determination of PICFLAG.  Currently, three libraries
   inside the gcc tree are built PIC without libtool: libgcc, libiberty,
   and libgnat/libgnarl.

   libiberty/configure.ac has a hardcoded list of PICFLAG that could be
   moved to a toplevel config/picflag.m4.

That's the simplest alternative. It would need however a pass through the config/ directory for targets that are never used as hosts for GCC (and thus libiberty).

Alternatively, the libtool code could be extracted to config/picflag.m4.

   Alternatively, one could think about using libtool --config | grep
   pic_flag to determine the flag without actually using libtool.

   Last, one completely could go for libtool, but I very much doubt such
   a suggestion would get much traction.

My current plan is to merge the PICFLAG information from libiberty and
libgcc into picflag.m4 and use that.

Yes, that needs to be done of course. I'm not sure if we still support gnatlib_and_tools to build libada/gnattools. If so, we would need the PICFLAG to be available somehow in the gcc Makefile (perhaps by providing GCC_TARGET_PICFLAG in addition to GCC_PICFLAG in picflag.m4).

Paolo

Reply via email to