This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: PATCH (libtool): Improper libgcj.a construction with modern GNU ar
- From: "Boehne, Robert" <rboehne at ricardo-us dot com>
- To: rittle at labs dot mot dot com
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org, libtool-patches at gnu dot org
- Date: Fri, 03 May 2002 16:41:17 -0500
- Subject: Re: PATCH (libtool): Improper libgcj.a construction with modern GNU ar
- References: <200205030355.g433tUZ19916@latour.rsch.comm.mot.com>
Loren,
Actually, you're not the first to complain about this,
but no patch was provided. ;^)
I'm going to check this change in to CVS Libtool after
changing it to alter ltmain.in.
Thanks,
Robert
Loren James Rittle wrote:
>
> In article <3CD29B18.AC6561AD@ricardo-us.com>,
> "Boehne, Robert" <rboehne@ricardo-us.com> writes:
>
> > The discussion of the problem seems to suggest that the
> > fix is to check for GNU ar, and add 'P', your patch
> > does somthing else. Would you explain why?
>
> > http://gcc.gnu.org/ml/java/2002-04/msg00338.html
>
> > "When it is seen to be GNU ar, ``P'' must be added to AR_FLAGS"
>
> [Yes, that was my original ill advice before I did required research.]
>
> > I think I know the reason, but I like to make sure.
>
> The reasons are (a) that binutils ar 2.10+ is documented to only honor
> the P flag for extraction (the workaround I originally suggested to
> use P was seen to work in practice but the documentation doesn't back
> up the use); (b) P is not a POSIX compatible flag whereas q (insert,
> without replacement) is both POSIX [1] and classic UNIX [2] ar compatible.
>
> [1] http://www.opengroup.org/onlinepubs/007908799/xcu/ar.html
> [2] http://cm.bell-labs.com/7thEdMan/
>
> Regards,
> Loren
--
Robert Boehne Software Engineer
Ricardo Software Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email: rboehne AT ricardo-us DOT com