libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

4-csw-cygwin-undo3-fix-postinstall_cmds.patch


From: Charles Wilson
Subject: 4-csw-cygwin-undo3-fix-postinstall_cmds.patch
Date: Fri, 24 Sep 2004 09:27:22 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 MultiZilla/1.6.4.0b

Well, it turns out my earlier patch, 3-csw-cygwin-better-quoting-for-postinstall_cmds.patch, which was simply a forward port of changes in the cygwin-1.5.x release of libtool, is unnecessary (and harmful) in HEAD.

I thought the 19 test errors I saw were OTHER regressions, and that forward-porting changes would be a good 'first cut' at fixing what ails CVS HEAD on cygwin.

Wrong.

After investigating those 19 errors, 16 of 'em are cleaned up by the combination of attached patch and one other. The attached reverts 3-csw-cygwin-better-quoting-for-postinstall_cmds.patch and makes a tiny additional change: use $RM not $rm.

--
Chuck


2004-09-23  Charles Wilson  <address@hidden>

        * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER([TAG])):
        remove erroneous quoting for postinstall_cmds and 
        postuninstall_cmds; use $RM not $rm

Index: m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/m4/libtool.m4,v
retrieving revision 1.113
diff -u -r1.113 libtool.m4
--- m4/libtool.m4       23 Sep 2004 13:46:46 -0000      1.113
+++ m4/libtool.m4       24 Sep 2004 13:03:08 -0000
@@ -1714,13 +1714,13 @@
     library_names_spec='$libname.dll.a'
     # DLL is installed to $(libdir)/../bin by postinstall_cmds
     postinstall_cmds='base_file=`basename \${file}`~
-      dlpath=`$SHELL 2>&1 -c '\'\\\'\''. 
$dir/'\'\\\'\''\${base_file}'\'\\\'\''i;echo \$dlname'\'\\\'\''`~
+      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo 
\$dlname'\''`~
       dldir=$destdir/`dirname \$dlpath`~
       test -d \$dldir || mkdir -p \$dldir~
       $install_prog $dir/$dlname \$dldir/$dlname'
-    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\'\\\'\''. $file; echo 
\$dlname'\'\\\'\''`~
+    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
       dlpath=$dir/\$dldll~
-       $rm \$dlpath'
+       $RM \$dlpath'
     shlibpath_overrides_runpath=yes
 
     case $host_os in

reply via email to

[Prev in Thread] Current Thread [Next in Thread]