This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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
earlier message.

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
	target-zlib.

Index: config-lang.in
===================================================================
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"
 
-target_libs=${libgcj_saved}
+target_libs="target-libjava target-zlib"
 lang_dirs="zlib fastjar"
 #build_by_default=no
 lang_requires=c++

brgds, H-P


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]