]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
handle sysrooted paths when reading dependencies to la files
authorPaolo Bonzini <bonzini@gnu.org>
Wed, 28 Jul 2010 22:00:12 +0000 (00:00 +0200)
committerPaolo Bonzini <bonzini@gnu.org>
Wed, 11 Aug 2010 18:43:03 +0000 (14:43 -0400)
* libltdl/config/ltmain.m4sh (func_mode_execute, func_mode_install,
func_mode_link): Whenever a .la file occurs in another .la file,
expand the sysroot path in it.

Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
libltdl/config/ltmain.m4sh

index a901b3e6fbf5847a37b48f9a4279d6dd9a7d81e3..3012e509bbeb44f1f0a546f557c14990f692715b 100644 (file)
@@ -1261,6 +1261,9 @@ func_mode_execute ()
       dir=
       case $file in
       *.la)
+       func_resolve_sysroot "$file"
+       file=$func_resolve_sysroot_result
+
        # Check to see that this really is a libtool archive.
        func_lalib_unsafe_p "$file" \
          || func_fatal_help "\`$lib' is not a valid libtool archive"
@@ -1612,6 +1615,9 @@ func_mode_install ()
        ;;
 
       *.la)
+       func_resolve_sysroot "$file"
+       file=$func_resolve_sysroot_result
+
        # Check to see that this really is a libtool archive.
        func_lalib_unsafe_p "$file" \
          || func_fatal_help "\`$file' is not a valid libtool archive"
@@ -4778,16 +4784,17 @@ func_mode_link ()
       *.la)
        # A libtool-controlled library.
 
+       func_resolve_sysroot "$arg"
        if test "$prev" = dlfiles; then
          # This library was specified with -dlopen.
-         func_append dlfiles " $arg"
+         func_append dlfiles " $func_resolve_sysroot_result"
          prev=
        elif test "$prev" = dlprefiles; then
          # The library was specified with -dlpreopen.
-         func_append dlprefiles " $arg"
+         func_append dlprefiles " $func_resolve_sysroot_result"
          prev=
        else
-         func_append deplibs " $arg"
+         func_append deplibs " $func_resolve_sysroot_result"
        fi
        continue
        ;;
@@ -5113,7 +5120,10 @@ func_mode_link ()
          deplibs="$deplib $deplibs"
          continue
          ;;
-       *.la) lib="$deplib" ;;
+       *.la)
+         func_resolve_sysroot "$deplib"
+         lib=$func_resolve_sysroot_result
+         ;;
        *.$libext)
          if test "$pass" = conv; then
            deplibs="$deplib $deplibs"