]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in (newdlprefiles): Use dlname if it's available and
authorAlexandre Oliva <aoliva@redhat.com>
Mon, 4 Sep 2000 01:17:42 +0000 (01:17 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 4 Sep 2000 01:17:42 +0000 (01:17 +0000)
old_library isn't; use linklib only if dlname is not available.

ChangeLog
ltmain.in

index 864eda88ec05b41056190e2d9edd795791682134..ff9d6126476139a0ab65cbf8738c4d4be9a2110a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-09-03  Alexandre Oliva  <aoliva@redhat.com>
 
+       * ltmain.in (newdlprefiles): Use dlname if it's available and
+       old_library isn't; use linklib only if dlname is not available.
+
        * ltconfig.in (enable_dlopen): Set to no when lt_cv_dlopen is no.
 
        * libtool.m4 (AM_PROG_GCJ): Removed.
index d0595412546b493e01599576b732c93dcf209f18..145e56900461331d68d3038fcc71e3f5b87352bc 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -1821,6 +1821,9 @@ EOF
          # are required to link).
          if test -n "$old_library"; then
            newdlprefiles="$newdlprefiles $dir/$old_library"
+         # Otherwise, use the dlname, so that lt_dlopen finds it.
+         elif test -n "$dlname"; then
+           newdlprefiles="$newdlprefiles $dir/$dlname"
          else
            newdlprefiles="$newdlprefiles $dir/$linklib"
          fi