]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: when linking another library add its
authorThomas Tanner <tanner@ffii.org>
Thu, 27 May 1999 17:03:44 +0000 (17:03 +0000)
committerThomas Tanner <tanner@gmx.de>
Thu, 27 May 1999 17:03:44 +0000 (17:03 +0000)
  -L paths to lib_search_path (otherwise the deplibs check will fail)

ChangeLog
ltmain.in

index cb65e6042e065d60cae3297a55cd3d3051f2719b..3c33f3d07c527e9fa96f4bcb8882958df1f16615 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-05-24 Thomas Tanner  <tanner@ffii.org>
+
+       * 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  <oliva@dcc.unicamp.br>, Olly Betts  <olly@muscat.co.uk>
 
        * ltmain.in: Expand convenience libraries when creating reloadable 
index 95e8c735b1b2e34fcc823987b1eeaaa1d4bf957f..1f5a7e1550fdab3c3e3ddb6ddbf4b3c995b80c05 100644 (file)
--- 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