]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: use false or : for $always_export_symbols, and simplify
authorPeter Rosin <peda@lysator.liu.se>
Tue, 15 Jan 2013 08:31:31 +0000 (09:31 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Tue, 15 Jan 2013 09:51:03 +0000 (10:51 +0100)
* build-aux/ltmain.in (func_mode_link): Save a string comparison
by setting $lways_export_symbols to false or : and using it directly
as the first argument to if. Make sure that it is always initialized
while at it.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
build-aux/ltmain.in

index c8cdb9c9be7eab79ed537c2e58dcda317f3cb6b0..98256a58b0d2825b73fa28001a9382cdab9b69dd 100644 (file)
@@ -7566,6 +7566,7 @@ EOF
        fi
 
        orig_export_symbols=
+       always_export_symbols=false
        case $host_os in
        cygwin* | mingw* | cegcc*)
          if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
@@ -7579,7 +7580,7 @@ EOF
              # include_expsyms logic still works.
              orig_export_symbols=$export_symbols
              export_symbols=
-             always_export_symbols=yes
+             always_export_symbols=:
            fi
          fi
          ;;
@@ -7587,7 +7588,7 @@ EOF
 
        # Prepare the list of exported symbols
        if test -z "$export_symbols"; then
-         if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
+         if $always_export_symbols || test -n "$export_symbols_regex"; then
            func_verbose "generating symbol list for '$libname.la'"
            export_symbols=$output_objdir/$libname.exp
            $opt_dry_run || $RM $export_symbols