]> 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 16:29:15 +0000 (16:29 +0000)
committerGary V. Vaughan <gary@gnu.org>
Mon, 1 Nov 2004 16:29:15 +0000 (16:29 +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 685b32b867fd52179b8265bc27d74da4cd57660c..b20b1597b33dfb15cc6d6206ffc62c5f7c8ddc32 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 f68477a62257b1a5f579ce277529a5a7bdf9154e..8b104baa27404958fe110f6a9ef31f954b31f627 100644 (file)
@@ -1833,7 +1833,17 @@ func_mode_install ()
          # Install the shared library and build the symlinks.
          func_show_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
            func_show_eval "$striplib $destdir/$realname" 'exit $?'
          fi
 
index 17c00cb2b7c140c6b9f2e5b96cd421b9474a835e..df26e8952bdf83eeca86b2b1ec6de2a257432992 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
+        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+      fi'
     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
       dlpath=$dir/\$dldll~
        $RM \$dlpath'