]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: use false or : for $linkalldeplibs, and simplify
authorGary V. Vaughan <gary@gnu.org>
Tue, 2 Oct 2012 11:08:29 +0000 (18:08 +0700)
committerGary V. Vaughan <gary@gnu.org>
Tue, 2 Oct 2012 14:07:22 +0000 (21:07 +0700)
* build-aux/ltmain.m4sh (func_mode_link): Save a string
comparison by setting $linkalldeplibs to false or : and using it
directly as the first argument to if.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
build-aux/ltmain.m4sh

index 4283a82e2cb28a534e33e79fe4b0642680a507ee..7679d3d21150e37d18c013773a59c844f22d12a7 100644 (file)
@@ -5843,10 +5843,10 @@ func_mode_link ()
          func_append newlib_search_path " $ladir"
          deplibs="$lib $deplibs"
 
-         linkalldeplibs=no
+         linkalldeplibs=false
          if test no != "$link_all_deplibs" || test -z "$library_names" ||
             test no = "$build_libtool_libs"; then
-           linkalldeplibs=yes
+           linkalldeplibs=:
          fi
 
          tmp_libs=
@@ -5858,7 +5858,7 @@ func_mode_link ()
                 ;;
            esac
            # Need to link against all dependency_libs?
-           if test yes = "$linkalldeplibs"; then
+           if $linkalldeplibs; then
              deplibs="$deplib $deplibs"
            else
              # Need to hardcode shared library paths