old_library isn't; use linklib only if dlname is not available.
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
# 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