[PR libgcj/44341] introduce --with-target-{gmp,mpfr,...}

Alexandre Oliva aoliva@redhat.com
Thu Jan 27 04:53:00 GMT 2011


On Jan 25, 2011, "Joseph S. Myers" <joseph@codesourcery.com> wrote:

> Even there, the options may not really be general enough, in that if you 
> are building libgcj, linked against libgmp, for an x86_64-linux-gnu target 
> in a multilib configuration, you probably want both 32-bit and 64-bit 
> libgmp and so a single option may not suffice to say where they are for 
> all multilibs.

Ok, this is definitely a killer.  Thanks for bringing this up.  I've now
simplified the patch, dropping the --with-target* options, and changing
it so as to refrain from passing the host-specific options to configure
cross target libraries.

> What should be done in general is making it explicit (in install.texi) 
> that certain options are host options or target options.  Thus: 
> --with-gmp* and other library options are purely host options and do not 
> relate to the target at all.

*nod*

> --disable-shared is purely a target option and not relevant to the
> host

Erhm...  This may be so for GCC, but it definitely isn't so in other
packages that share the top level infrastructure with GCC.

Here's the simplified patch I've just smoke-tested.  Any objections?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: toplev-remap-target-args-pr44341.patch
Type: text/x-diff
Size: 7671 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110127/254ac4e4/attachment.bin>
-------------- next part --------------


-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer


More information about the Gcc-patches mailing list