summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary V. Vaughan <gary@gnu.org>2012-10-02 19:31:49 +0700
committerGary V. Vaughan <gary@gnu.org>2012-10-02 21:07:52 +0700
commitc0228e02d1ccced003b64c2c6efe13fc7cd793b5 (patch)
tree07690f65d52c86a8d245ccdc7b4bbb1bc0052311
parent2e7ba6d709a77471f5929cd8d347a86cc1fedd2d (diff)
downloadlibtool-c0228e02d1ccced003b64c2c6efe13fc7cd793b5.tar.gz
libtool: simplify $skipped_export blocks
* build-aux/ltmain.m4sh (func_mode_link): Save an if statement with '$skipped_export && { block; }' instead of 'if $skipped_export; then block; fi'. Signed-off-by: Gary V. Vaughan <gary@gnu.org>
-rw-r--r--build-aux/ltmain.m4sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh
index af26717f..f4ca699b 100644
--- a/build-aux/ltmain.m4sh
+++ b/build-aux/ltmain.m4sh
@@ -7668,7 +7668,7 @@ EOF
output=
fi
- if ${skipped_export-false}; then
+ ${skipped_export-false} && {
func_verbose "generating symbol list for \`$libname.la'"
export_symbols=$output_objdir/$libname.exp
$opt_dry_run || $RM $export_symbols
@@ -7679,7 +7679,7 @@ EOF
if test -n "$last_robj"; then
eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
fi
- fi
+ }
test -n "$save_libobjs" &&
func_verbose "creating a temporary reloadable object file: $output"
@@ -7713,7 +7713,7 @@ EOF
fi
fi
- if ${skipped_export-false}; then
+ ${skipped_export-false} && {
if test -n "$export_symbols" && test -n "$include_expsyms"; then
tmp_export_symbols=$export_symbols
test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
@@ -7733,7 +7733,7 @@ EOF
export_symbols=$output_objdir/$libname.def
$opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
fi
- fi
+ }
libobjs=$output
# Restore the value of output.