This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


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

Can't build libgcj CVS on DU 4.0


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


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