This is the mail archive of the java@gcc.gnu.org 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]
Other format: [Raw text]

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


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