From: Peter Ekberg Date: Wed, 21 Sep 2005 12:47:54 +0000 (+0000) Subject: * ltmain.in (clean mode): Clean up $dlname as well when cleaning X-Git-Tag: release-1-5-22~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a93f72360a0ec9ff4995e1fee9913fae022b437b;p=thirdparty%2Flibtool.git * ltmain.in (clean mode): Clean up $dlname as well when cleaning an uninstalled libtool library. Fixes -mode=clean on Cygwin and MinGW to actually remove the dll when cleaning up an uninstalled library. --- diff --git a/ChangeLog b/ChangeLog index 6eb398e8a..dbf89731d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-09-21 Peter Ekberg , + + * ltmain.in (clean mode): Clean up $dlname as well when cleaning + an uninstalled libtool library. Fixes -mode=clean on Cygwin and + MinGW to actually remove the dll when cleaning up an uninstalled + library. + 2005-09-20 Peter Ekberg , * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS, AC_LIBTOOL_LANG_CXX_CONFIG): diff --git a/ltmain.in b/ltmain.in index 3415a783b..debc38176 100644 --- a/ltmain.in +++ b/ltmain.in @@ -6185,9 +6185,17 @@ relink_command=\"$relink_command\"" rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" - test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" - if test "$mode" = uninstall; then + case "$mode" in + clean) + case " $library_names " in + # " " in the beginning catches empty $dlname + *" $dlname "*) ;; + *) rmfiles="$rmfiles $objdir/$dlname" ;; + esac + rmfiles="$rmfiles $objdir/$name $objdir/${name}i" + ;; + uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. cmds=$postuninstall_cmds @@ -6220,7 +6228,8 @@ relink_command=\"$relink_command\"" IFS="$save_ifs" fi # FIXME: should reinstall the best remaining shared library. - fi + ;; + esac fi ;;