This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Running ranlib after installation - okay or not?
- From: Peter O'Gorman <peter at pogma dot com>
- To: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- Cc: Libtool Bugs <bug-libtool at gnu dot org>, gcc at gcc dot gnu dot org, Libtool Patches <libtool-patches at gnu dot org>
- Date: Fri, 02 Sep 2005 01:06:54 +0900
- Subject: Re: Running ranlib after installation - okay or not?
- References: <Pine.BSF.4.62.0508311718400.22973@pulcherrima.dbai.tuwien.ac.at> <m3wtm2kmsh.fsf@gossamer.airs.com> <0b7e9f70d997eb3033872da5db37f4c8@physics.uc.edu> <m3slwplxoq.fsf@gossamer.airs.com> <m3k6i1lxd2.fsf@gossamer.airs.com> <Pine.BSF.4.62.0508312203410.22973@pulcherrima.dbai.tuwien.ac.at> <43167287.4080907@pogma.com> <43168D0F.7040404@pogma.com> <20050901115222.GE3391@iam.uni-bonn.de>
Ralf Wildenhues wrote:
Should that be:
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
??
Yes, I believe so (both CVS HEAD and branch-1-5).
Unless there exists ranlib's that change file mode..
Okay, the attached pathces are applied to libtool HEAD and branch-1-5.
Thank you,
Peter
2005-09-01 Peter O'Gorman <peter@pogma.com>
* libltdl/m4/libtool.m4 (old_postintall_cmds): chmod 644 before
running ranlib.
Reported by Gerald Pfeifer <gerald@pfeifer.com>
Index: libltdl/m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/m4/libtool.m4,v
retrieving revision 1.10
diff -u -3 -p -u -r1.10 libtool.m4
--- libltdl/m4/libtool.m4 1 Sep 2005 14:16:08 -0000 1.10
+++ libltdl/m4/libtool.m4 1 Sep 2005 16:03:08 -0000
@@ -1200,10 +1200,10 @@ old_postuninstall_cmds=
if test -n "$RANLIB"; then
case $host_os in
openbsd*)
- old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
;;
*)
- old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
;;
esac
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2005-09-01 Peter O'Gorman <peter@pogma.com>
* libtool.m4 (old_postintall_cmds): chmod 644 before running
ranlib.
Reported by Gerald Pfeifer <gerald@pfeifer.com>
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/libtool.m4,v
retrieving revision 1.314.2.105
diff -u -3 -p -u -r1.314.2.105 libtool.m4
--- libtool.m4 31 Aug 2005 18:29:21 -0000 1.314.2.105
+++ libtool.m4 1 Sep 2005 16:04:15 -0000
@@ -176,10 +176,10 @@ old_postuninstall_cmds=
if test -n "$RANLIB"; then
case $host_os in
openbsd*)
- old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
;;
*)
- old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
;;
esac
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"