This is the mail archive of the
mailing list for the GCC project.
[RFA:] java/config-lang.in: (target_libs): Just set to target-libjava target-zlib
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Mon, 6 Jun 2005 22:37:22 +0200
- Subject: [RFA:] java/config-lang.in: (target_libs): Just set to target-libjava target-zlib
Trying to resurrect bits from the rejected
prune-lang-when-lib-is-unsupported patch (sorry, forgot to CC
java-patches on that one). Java doesn't really require all
those libraries, it just needs the two mentioned in the patch
(deduced from grepping; libffi and boehm-gc seems really
optional for some targets and qthreads isn't even in the tree).
Even zlib is actually optional, for native configs and if
there's a system zlib. Tom Tromey says that case doesn't happen
for any target, so I just kept it in target_libs.
I want to be able to build target-libffi and target-boehm-gc
without the lack of target-libjava support (including in
noconfigdirs per-target) deciding for me that I can't build
them. Setting target_libs only has an impact on what libraries
are pruned when the language isn't supported.
Something like this will be needed anyway when libobjc starts
requiring boehm-gc and/or libffi (as hinted by pinskia), or else
presence of java will be xor presence of objc as mentioned in an
Tested by configuring for cris-axis-elf, cris-axis-aout,
cris-axis-linux-gnu, mmix-knuth-mmixware, i686-pc-cygwin, (native)
i686-pc-linux-gnu and observing the matching informational lib and
lang messages from the configure script.
The libgcj_saved assignment in toplevel configure.in seems like it can be
pruned after this patch is applied.
Ok to commit?
* config-lang.in (target_libs): Just set to target-libjava
RCS file: /cvs/gcc/gcc/gcc/java/config-lang.in,v
retrieving revision 1.17
diff -p -c -u -p -r1.17 config-lang.in
cvs diff: conflicting specifications of output style
--- config-lang.in 4 May 2005 01:46:40 -0000 1.17
+++ config-lang.in 6 Jun 2005 20:03:25 -0000
@@ -38,7 +38,7 @@ stagestuff="jc1\$(exeext) gcj\$(exeext)
gtfiles="\$(srcdir)/java/java-tree.h \$(srcdir)/java/jcf.h \$(srcdir)/java/lex.h \$(srcdir)/java/parse.h \$(srcdir)/java/builtins.c \$(srcdir)/java/class.c \$(srcdir)/java/constants.c \$(srcdir)/java/decl.c \$(srcdir)/java/expr.c \$(srcdir)/java/jcf-parse.c \$(srcdir)/java/jcf-write.c \$(srcdir)/java/lang.c \$(srcdir)/java/mangle.c \$(srcdir)/java/parse.y \$(srcdir)/java/resource.c"