]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* config/ltmain.m4sh (func_mode_install): On Windows based hosts,
authorCharles Wilson <libtool@cwilson.fastmail.fm>
Mon, 1 Nov 2004 15:05:23 +0000 (15:05 +0000)
committerGary V. Vaughan <gary@gnu.org>
Mon, 1 Nov 2004 15:05:23 +0000 (15:05 +0000)
ensure that import libraries don't get stripped.
* m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): On Windows based hosts,
use postinstall_cmds to strip DLL (not import lib!) when symbol
stripped installation was requested.

ChangeLog
config/ltmain.m4sh
m4/libtool.m4

index 6f2012fe6343850985c802ad5267110f38191394..075b0ee142fa9413bd38c03309c4ee311bb09282 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2004-11-01  Charles Wilson  <spam.protected>,
+           Peter Ekberg <spam.protected>
+
+       * config/ltmain.m4sh (func_mode_install): On Windows based hosts,
+       ensure that import libraries don't get stripped.
+       * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): On Windows based hosts,
+       use postinstall_cmds to strip DLL (not import lib!) when symbol
+       stripped installation was requested.
+
 2004-10-30  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
 
        * libltdl/ltdl.c (loader_init_callback): Back out broken cast.
index 4191b7fc5d552abe4c78740ebc4aa7915bc5564a..09449ce8d159ac3e1d08bb4ace30b8d0c5012c81 100644 (file)
@@ -1827,7 +1827,17 @@ func_mode_install ()
          # Install the shared library and build the symlinks.
          $show "$install_prog $dir/$srcname $destdir/$realname"
          $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
-         if test -n "$stripme" && test -n "$striplib"; then
+         tstripme="$stripme"
+         case $host_os in
+         cygwin* | mingw* | pw32*)
+           case $realname in
+           *.dll.a)
+             tstripme=""
+             ;;
+           esac
+           ;;
+         esac
+         if test -n "$tstripme" && test -n "$striplib"; then
            $show "$striplib $destdir/$realname"
            $run eval "$striplib $destdir/$realname" || exit $?
          fi
index 17c00cb2b7c140c6b9f2e5b96cd421b9474a835e..1225ac1ed5404e02ef0a34878faddcb649495fac 100644 (file)
@@ -1719,7 +1719,10 @@ cygwin* | mingw* | pw32*)
       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'
+      $install_prog $dir/$dlname \$dldir/$dlname~
+      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
+        $run eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+      fi'
     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
       dlpath=$dir/\$dldll~
        $RM \$dlpath'