link problems under darwin5.2

Jeff Sturm
Mon Jan 7 07:30:00 GMT 2002

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.

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
and rebuilding.)


More information about the Java mailing list