From: Charles Wilson Date: Sun, 22 Aug 2010 07:39:21 +0000 (+0200) Subject: fix --mode=finish X-Git-Tag: v2.4~72^2~5 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=5dca3212e16b8cd502a74f7c8e0a18187e36a03c;p=thirdparty%2Flibtool.git fix --mode=finish * libltdl/config/ltmain.m4sh (func_mode_finish): Invert then/else blocks of the "if $opt_dry_run" conditional. --- diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 4e922acd5..e4df9505e 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -1428,6 +1428,10 @@ func_mode_finish () # Remove sysroot references if $opt_dry_run; then + for lib in $libs; do + echo "removing references to $lt_sysroot and \`=' prefixes from $lib" + done + else tmpdir=`func_mktempdir` for lib in $libs; do sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ @@ -1435,10 +1439,6 @@ func_mode_finish () mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" - else - for lib in $libs; do - echo "removing references to $lt_sysroot and \`=' prefixes from $lib" - done fi fi