From: Jacob Meuser Date: Sun, 18 Dec 2005 23:06:44 +0000 (+0000) Subject: * libltdl/config/ltmain.m4sh (func_mode_link): Move library X-Git-Tag: release-2-1b~353 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=841602adb622a1fd51a0a1e43d6a4039f0cecdc0;p=thirdparty%2Flibtool.git * libltdl/config/ltmain.m4sh (func_mode_link): Move library search paths that coincide with paths to not yet installed libraries to the beginning of the library search list. --- diff --git a/ChangeLog b/ChangeLog index d0fb80bc3..e8f338c12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-12-18 Jacob Meuser , + Ralf Wildenhues + + * libltdl/config/ltmain.m4sh (func_mode_link): Move library + search paths that coincide with paths to not yet installed + libraries to the beginning of the library search list. + 2005-12-18 Ralf Wildenhues * THANKS: Updated. diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index cfbc9942f..99f44a8ff 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -4882,6 +4882,33 @@ EOF ;; esac + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $deplibs " in + *" -L$path/$objdir "*) + new_libs="$new_libs -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$new_libs $deplib" ;; + esac + ;; + *) new_libs="$new_libs $deplib" ;; + esac + done + deplibs="$new_libs" + # All the library-specific variables (install_libdir is set above). library_names= old_library= @@ -5471,6 +5498,35 @@ EOF ;; esac + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $compile_deplibs " in + *" -L$path/$objdir "*) + new_libs="$new_libs -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $compile_deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$new_libs $deplib" ;; + esac + ;; + *) new_libs="$new_libs $deplib" ;; + esac + done + compile_deplibs="$new_libs" + + compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs"