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

ChangeLog
ltmain.in

index 71dfb438f019e6c6edb4cb99e4b96403f60ff990..9c237354737bbcb7c7fc5af5c7f53c3d7d170478 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-09-03  Alexandre Oliva  <aoliva@redhat.com>
 
+       * ltmain.in (dlprefiles): 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.
 
        * ltmain.in (variables_saved_for_relink): Attempt to unset them
index eaabfebae11c23e24894cb02b8edf25d8e69a517..cb51a42796caaea497a9f82c66ebf7f48d48f3e5 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -1302,6 +1302,9 @@ compiler."
          # are required to link).
          if test -n "$old_library"; then
            dlprefiles="$dlprefiles $dir/$old_library"
+         # Otherwise, use the dlname, so that lt_dlopen finds it.
+         elif test -n "$dlname"; then
+           dlprefiles="$dlprefiles $dir/$dlname"
          else
            dlprefiles="$dlprefiles $dir/$linklib"
          fi