From: Peter O'Gorman Date: Mon, 28 Jan 2008 15:49:46 +0000 (+0000) Subject: Search the compiler path too. X-Git-Tag: release-2-1b~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bfb67e8ca7c763f0a381e1fae61ce8c6d7bb7f1f;p=thirdparty%2Flibtool.git Search the compiler path too. * libltdl/m4/libtool.m4 (compiler_lib_search_dirs): New variable. * libltdl/config/ltmain.m4sh: Use it. Reported by Maynard Johnson --- diff --git a/ChangeLog b/ChangeLog index dda0b3b9c..011a8f94f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-01-29 Peter O'Gorman + + Search the compiler path too. + * libltdl/m4/libtool.m4 (compiler_lib_search_dirs): New variable. + * libltdl/config/ltmain.m4sh: Use it. + Reported by Maynard Johnson + 2008-01-28 Gary V. Vaughan * libtoolize.m4sh (func_check_macros): Correct typo with diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 649f1b350..1fc5a3bca 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -4103,7 +4103,12 @@ func_mode_link () fi func_stripname '-l' '' "$deplib" name=$func_stripname_result - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do + if test "$linkmode" = lib; then + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" + else + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" + fi + for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 6fb01d5da..14f317d26 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -6471,6 +6471,12 @@ esac case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac + _LT_TAGVAR(compiler_lib_search_dirs, $1)= +if test -n "$${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi +_LT_TAGDECL([], [compiler_lib_search_dirs], [1], + [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library])