From: Gary V. Vaughan Date: Tue, 2 Oct 2012 11:08:29 +0000 (+0700) Subject: libtool: use false or : for $linkalldeplibs, and simplify X-Git-Tag: v2.4.2.418~168^2~10 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=d61e83993b58b935b1700dee1fa802990e76d397;p=thirdparty%2Flibtool.git libtool: use false or : for $linkalldeplibs, and simplify * 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 --- diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index 4283a82e2..7679d3d21 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -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