This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Can't build libgcj CVS on DU 4.0
- To: java-discuss at sources dot redhat dot com
- Subject: Can't build libgcj CVS on DU 4.0
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 15 Aug 2000 08:25:27 -0300
- Organization: GCC Team, Red Hat
I'm having trouble building libgcj (CVS) on DU 4.0.
The linker won't find -lgcjdata, even though -L. is present in the
command line. The problem is that the -L flags appear *after*
%startfile, so they aren't used to search for libgcjdata.
How about naming `libgcjdata.a%s' (or `gcjdata.o%s') explicitly in
startfiles? The %s will arrange for the file to be searched in all -B
directories. Then, we just have to add -B./ to the link command, and
we're done.
Well, kind of. With these tricks, ld does find libgcjdata.a, but it
still fails to link using gcj; a couple of symbols are undefined. I
wonder if this is the same linker bug that makes it impossible to link
libstdc++.so without including all of libgcc.a with -Wl,-all...
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me