On most modern Unix systems the ranlib step is already integrated into ar.
I'd guess that only a genuine 4.[23]BSD or SVR1 system would actually need
an
explicit ranlib. Another approach is to use an overrideable RANLIB macro
like so:

RANLIB=ranlib

libxxx.a: a.o b.o c.o
        ar r $@ $?; $(RANLIB) $@

On systems that don't need it, invoke make with RANLIB=:  and the shell will
ignore it. (Combine the ar and ranlib commands one one line, as above, to
avoid
an unnecessary additional spawn of sh for the possibly unneeded ranlib
invocation...)

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Gary Feldman
> Sent: Wednesday, October 11, 2000 6:49 AM
> To: [EMAIL PROTECTED]
> Subject: RE: more on ranlib
>
>
> In the For What It is Worth department:
>
> On Solaris 2.7, at least, /usr/ccs/bin/ranlib is a shell script that just
> does an exit.  While firing up a shell script is not zero overhead, it's
> still less than a real ranlib pass on a large library.
>
> Ideally, this would be the situation on all platforms, i.e. if ranlib is
> unnecessary, then either it doesn't exist or is bound to a
> trivial script or
> program. Of course, one can't assume the ideal situation.
>
> Gary
>
>
> ====================================================================
>                   Ready-to-Run Software, Inc.
>                  Software Porting Specialists.
>                  *****************************
> email: [EMAIL PROTECTED]                 Gary Feldman
> fax  : 1-978-692-5401              Ready-to-Run Software, Inc.
> voice: 1-978-251-5431              11 School Street
> www  : http://www.rtr.com          North Chelmsford, MA 01863
>                                                      USA
>
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> Development Mailing List                       [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to