delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/24/03:25:53

Date: Wed, 24 Dec 1997 10:25:43 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Robert Hoehne <robert DOT hoehne AT gmx DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Creating a library
In-Reply-To: <349FD2D7.4BC9092C@gmx.net>
Message-ID: <Pine.SUN.3.91.971224102523.16655H-100000@is>
MIME-Version: 1.0

On Tue, 23 Dec 1997, Robert Hoehne wrote:

> Yes, you are wrong. I don“t know exactly what is written in the
> doc, but as I have currently the sources here, I have looked at them
> and saw, that it is independent how the switches are ordered.

The order is important in the Unix versions of `ar', but GNU `ar'
lifted that restriction.  If you sometimes have to work on Unix where
GNU Binutils are not installed, you'd be better off using the
traditional order, which is "ar rv" (some versions of non-GNU `ar'
don't support the `s' flag, so you will need to run `ranlib' after
`ar' to get the symbol table updated).

> And an other thing: When I rememeber correct, the switches for ar should
> be given without the -, which is allowed only for "compatibility".

It's the other way around: the ``compatible'' way is to not use the
dash `-'.  That is how traditional Unix `ar' works.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019