From: Paolo Bonzini Date: Wed, 28 Jul 2010 22:00:12 +0000 (+0200) Subject: handle sysrooted paths when reading dependencies to la files X-Git-Tag: v2.4~72^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=adb8f844f3327b2b8f6f92945f539e4df7aec24d;p=thirdparty%2Flibtool.git handle sysrooted paths when reading dependencies to la files * 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 --- diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index a901b3e6f..3012e509b 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -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"