From: Charles Wilson Date: Mon, 1 Nov 2004 15:05:23 +0000 (+0000) Subject: * config/ltmain.m4sh (func_mode_install): On Windows based hosts, X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d47c98dd2fcddc178d0eeb9184024c3cd7d6cae;p=thirdparty%2Flibtool.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 6f2012fe6..075b0ee14 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2004-11-01 Charles Wilson , + Peter Ekberg + + * 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 * libltdl/ltdl.c (loader_init_callback): Back out broken cast. diff --git a/config/ltmain.m4sh b/config/ltmain.m4sh index 4191b7fc5..09449ce8d 100644 --- a/config/ltmain.m4sh +++ b/config/ltmain.m4sh @@ -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 diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 17c00cb2b..1225ac1ed 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -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'