Mail Archives: djgpp/1997/12/24/03:25:53
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 -