From: Thomas Tanner Date: Thu, 27 May 1999 17:03:44 +0000 (+0000) Subject: * ltmain.in: when linking another library add its X-Git-Tag: release-1-3-3~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d27d0c24050013535e5c42401661705294310daa;p=thirdparty%2Flibtool.git * ltmain.in: when linking another library add its -L paths to lib_search_path (otherwise the deplibs check will fail) --- diff --git a/ChangeLog b/ChangeLog index cb65e6042..3c33f3d07 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-05-24 Thomas Tanner + + * ltmain.in: when linking another library add its + -L paths to lib_search_path (otherwise the deplibs check will fail) + 1999-05-27 Alexandre Oliva , Olly Betts * ltmain.in: Expand convenience libraries when creating reloadable diff --git a/ltmain.in b/ltmain.in index 95e8c735b..1f5a7e155 100644 --- a/ltmain.in +++ b/ltmain.in @@ -1222,7 +1222,7 @@ compiler." fi if test -n "$dependency_libs"; then - # Extract -R from dependency_libs + # Extract -R and -L from dependency_libs temp_deplibs= for deplib in $dependency_libs; do case "$deplib" in @@ -1234,7 +1234,13 @@ compiler." -L*) case "$compile_command $temp_deplibs " in *" $deplib "*) ;; *) temp_deplibs="$temp_deplibs $deplib";; - esac;; + esac + temp_dir=`$echo "X$deplib" | $Xsed -e 's/^-L//'` + case " $lib_search_path " in + *" $temp_dir "*) ;; + *) lib_search_path="$lib_search_path $temp_dir";; + esac + ;; *) temp_deplibs="$temp_deplibs $deplib";; esac done