ranlib'ing static libraries?

2000-08-13 Thread Assar Westerlund

It seems to me that -current libtool has lost the ability to run
ranlib when creating static libraries.  I added back the lines from a
previous versions, see patch at end.  Is there any reason for not
calling ranlib?  Not using ranlib does make static libraries not work
on some platforms, for example OpenBSD/i386.  Any comments?

/assar

2000-08-13  Assar Westerlund  <[EMAIL PROTECTED]>

* ltconfig.in: add back ranlib calls for static libraries if there
is a ranlib

Index: ltconfig.in
===
RCS file: /home/cvs/libtool/ltconfig.in,v
retrieving revision 1.275
diff -u -w -u -w -r1.275 ltconfig.in
--- ltconfig.in 2000/07/24 06:15:50 1.275
+++ ltconfig.in 2000/08/13 20:59:05
@@ -526,6 +528,11 @@
 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 old_postinstall_cmds='chmod 644 $oldlib'
 old_postuninstall_cmds=
+
+if test -n "$RANLIB"; then
+  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
+  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
+fi
 
 # Set sane defaults for various variables
 test -z "$AR" && AR=ar




Re: ranlib'ing static libraries?

2000-09-02 Thread Alexandre Oliva

On Aug 13, 2000, Assar Westerlund <[EMAIL PROTECTED]> wrote:

>   * ltconfig.in: add back ranlib calls for static libraries if there
>   is a ranlib

Thanks, I'm checking this in.  Sorry about the delay.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicampoliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist*Please* write to mailing lists, not to me