]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/config/ltmain.m4sh (func_mode_link): Avoid setting
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 23 Feb 2007 20:43:50 +0000 (20:43 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 23 Feb 2007 20:43:50 +0000 (20:43 +0000)
`$libobjs' to a single space; set it to empty in that case.

ChangeLog
libltdl/config/ltmain.m4sh

index 77f0774f14042351f962c1427e6e541dd0a879e9..5d00c62336f191f7ccf489a6fb775afb93ccd5db 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * libltdl/config/ltmain.m4sh (func_mode_link): Avoid setting
+       `$libobjs' to a single space; set it to empty in that case.
+
 2007-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * libltdl/config/ltmain.m4sh (func_generate_dlsyms) [ osf5 ]:
index 0466171877f4cf530720c881392ad13fdc4e6c97..74ac159b15243d8a222c69e8b159d5476d9f5feb 100644 (file)
@@ -4533,6 +4533,7 @@ func_mode_link ()
 
       func_generate_dlsyms "$libname" "$libname" "yes"
       libobjs="$libobjs $symfileobj"
+      test "X$libobjs" = "X " && libobjs=
 
       if test "$mode" != relink; then
        # Remove our outputs, but don't remove object files since they
@@ -5088,6 +5089,7 @@ EOF
 
        # Use standard objects if they are pic
        test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+       test "X$libobjs" = "X " && libobjs=
 
        delfiles=
        if test -n "$export_symbols" && test -n "$include_expsyms"; then
@@ -5183,12 +5185,14 @@ EOF
          if test -n "$whole_archive_flag_spec"; then
            save_libobjs=$libobjs
            eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+           test "X$libobjs" = "X " && libobjs=
          else
            gentop="$output_objdir/${outputname}x"
            generated="$generated $gentop"
 
            func_extract_archives $gentop $convenience
            libobjs="$libobjs $func_extract_archives_result"
+           test "X$libobjs" = "X " && libobjs=
          fi
        fi
 
@@ -5357,6 +5361,7 @@ EOF
 
          if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
            eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+           test "X$libobjs" = "X " && libobjs=
          fi
          # Expand the library linking commands again to reset the
          # value of $libobjs for piecewise linking.
@@ -5389,6 +5394,7 @@ EOF
 
          func_extract_archives $gentop $dlprefiles
          libobjs="$libobjs $func_extract_archives_result"
+         test "X$libobjs" = "X " && libobjs=
        fi
 
        save_ifs="$IFS"; IFS='~'