This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: link problems under darwin5.2
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Andreas Tobler <toa at pop dot agri dot ch>
- Cc: tromey at redhat dot com, GCC-Java <java at gcc dot gnu dot org>
- Date: Mon, 7 Jan 2002 10:30:22 -0500 (EST)
- Subject: Re: link problems under darwin5.2
On Mon, 7 Jan 2002, Andreas Tobler wrote:
> Do I probably have a defective ar?
ISTR having a similar problem on another project. Since ar could not
preserve path information (does GNU?), it cannot correctly identify
duplicate members. So it must always append new members to the archive.
Out of curiousity, what AR_FLAGS does ltconfig give you? Look in
<build-dir>/<target>/libjava/libtool. Mine has:
# The archiver.
AR="ar"
AR_FLAGS="cru"
This seems wrong since we never want to replace archive members. Perhaps
AR_FLAGS="qu" would be a better choice. (You could experiment with that
on your darwin build by altering your libtool script, removing libgcj.la
and rebuilding.)
Jeff