Report about -static failing when libgcj.a built with GNU ar

Loren James Rittle rittle@latour.rsch.comm.mot.com
Wed Apr 24 08:42:00 GMT 2002


In article <000c01c1eb92$5ca033c0$8201a8c0@mosm1> you write:

> I reported something similar on FreeBSD some time ago:

> http://gcc.gnu.org/ml/java/2001-10/msg00090.html

Hi Jan,

Your patch was probably good if we just want to fix FreeBSD but please
note that (unless I'm confused) this issue affects -static on all
platforms that use recent releases of GNU ar not just FreeBSD.
Although I mainly use FreeBSD, I attempt to wear my gcc hat as much as
possible when putting patches into the FSF tree.

Another issue to consider: GNU ar 2.9.1 doesn't accept P.  Even
FreeBSD 4 (and Red Hat 6.1) shipped with GNU ar 2.9.1.  In any event,
no static configuration patch will really account for this issue
properly since users could have installed on any system a copy of GNU
ar that (a) allows P and (b) requires P to properly build libgcj.a.
We are suppose to adapt to what we actually find; never assume based
on OS type and version.

Regards,
Loren



More information about the Java mailing list