PATCH RFA: Permit languages to share target_libs
Ian Lance Taylor
iant@google.com
Sat Nov 20 01:44:00 GMT 2010
OK, here is a different approach for the issue that target-libgo
requires target-libffi. With this patch, we only add target_libs for
disabled languages to noconfigdirs if they are not in target_libs for
any enabled languages.
In order to make this work for Go, I had to prevent --disable-libgcj
from adding libffi to noconfigdirs. This does mean that libffi will be
built for the case of --enable-languages=java --disable-libgcj, unless
libffi is disabled for the target. I don't think that is a big deal. I
doubt this is a widely used case, and libffi is a small library.
Bootstrapped on x86_64-unknown-linux-gnu. I configured with the
following options and examined the generated Makefile to make sure that
it looked OK:
--enable-languages=c
--enable-languages=c,java
--enable-languages=c,go
--enable-languages=c,go,java
--enable-languages=c,go,java --enable-libgcj
--enable-languages=c,go,java --disable-libgcj
OK for mainline?
Ian
2010-11-19 Ian Lance Taylor <iant@google.com>
* configure.ac: Only disable a language library if no language needs
it. Don't let --disable-libgcj uncondtionally disable libffi.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 2526 bytes
Desc: configure
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101120/db7c921b/attachment.bin>
More information about the Gcc-patches
mailing list