This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
how to libtoolize Java project?
- To: java at gcc dot gnu dot org
- Subject: how to libtoolize Java project?
- From: Per Bothner <per at bothner dot com>
- Date: 28 Apr 2001 11:08:28 -0700
I'd like to have the option of building Kawa as a shared library, and to
do this I'd like to use libtool. But I'm a little confused about I need
to do this. The recently released libtool-1.4 does not seem to support
Java or gcj - at least I don't see Java mentioned anywhere, and grep'ing
through the source fails to find either java or gcj. But clearly
libjava is using libtool.
I tried copying from the gcc top-level the libtool-related files
libtool.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh ltconfig ltmain.sh
into the top-level Kawa directory. I've added AM_PROG_LIBTOOL to
configure.in. I do aclocal && automake && autoconf, and reconfigure.
My make does:
../../libtool --tag=GCJ --mode=compile gcj -g \
--CLASSPATH=../..:/home/bothner/Kawa/kawa/gnu/bytecode/../.. -c \
/home/bothner/Kawa/kawa/gnu/bytecode/Access.java /home/bothner/Kawa/kawa/gnu/bytecode/Attribute.java ... -o ../../bin/gnu-bytecode.lo
and I get:
libtool: ignoring unknown tag GCJ
and then invokes gcj, passing it the flag -DPIC, which gcj doesn't like.
So what else do I need?
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/