[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libtool and gcj still not friends?
From: |
Sven Herzberg |
Subject: |
libtool and gcj still not friends? |
Date: |
Sat, 28 Feb 2004 21:36:03 +0100 |
[Versions]
# libtool --version
ltmain.sh (GNU libtool) 1.5.2 (1.1220.2.60 2004/01/25 12:25:08) Debian:
192 $
# automake-1.7 --version
automake (GNU automake) 1.7.9
# autoconf --version
autoconf (GNU Autoconf) 2.59
Hi,
I'd like to create a library with Java to be compiled with gcj. For
cross-platform support etc. I want to do this with automake, autoconf
and libtool. Unfortunately this doesn't work on any of my machines.
Attached is a tarball with a mini-project (autogen.sh, configure.in,
Makefile.am and Demo.java) that serves as a testcase for this.
ERROR 1
=======
When I wanted to build with Makefile.am looking like that
--
lib_LTLIBRARIES=libjavademo.la
libjavademo_la_SOURCES=Demo.java
--
Libtool complains like this:
--
# make
if /bin/sh ./libtool --mode=compile gcj -g -O2 -MT Demo.lo -MD -MP -MF
".deps/Demo.Tpo" \
-c -o Demo.lo `test -f 'Demo.java' || echo './'`Demo.java; \
then mv -f ".deps/Demo.Tpo" ".deps/Demo.Plo"; \
else rm -f ".deps/Demo.Tpo"; exit 1; \
fi
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make: *** [Demo.lo] Fehler 1
#
--
ERROR 2
=======
So I defined my own LTGCJCOMPILE variable (take a look at the
Makefile.am in the tarball) to set '--tag=GCJ' too. Now this error
appears:
--
# make
if /bin/sh ./libtool --tag=GCJ --mode=compile gcj -g -O2 -MT Demo.lo
-MD -MP -MF ".deps/Demo.Tpo" \
-c -o Demo.lo `test -f 'Demo.java' || echo './'`Demo.java; \
then mv -f ".deps/Demo.Tpo" ".deps/Demo.Plo"; \
else rm -f ".deps/Demo.Tpo"; exit 1; \
fi
libtool: ignoring unknown tag GCJ
gcj -g -O2 -MT Demo.lo -MD -MP -MF .deps/Demo.Tpo -c Demo.java -fPIC
-DPIC -o .libs/Demo.o
gcj: can't specify `-D' without `--main'
make: *** [Demo.lo] Fehler 1
#
--
Now this error REALLY confuses me (if you're looking for a reason, take
a look at the attached configure-stdout file -- it says 'appending
configuration tag "GCJ" to libtool').
Please help.
Regards,
Sven
--
Sven Herzberg <address@hidden> · Jabber: address@hidden
GNOME Deutschland · http://www.gnome-de.org/
libtooltest.tar.bz2
Description: application/bzip
configure-stdout
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- libtool and gcj still not friends?,
Sven Herzberg <=