From 7666c21afdfe68006b875fb5dff82e7ade9c720f Mon Sep 17 00:00:00 2001 From: Archie Cobbs Date: Sat, 20 Feb 1999 05:23:31 +0000 Subject: [PATCH] * libltdl/ltdl.c (lt_dlopen): use newhandle instead of handle where appropriate, when dlopening a non-libtool library --- ChangeLog | 5 +++++ libltdl/ltdl.c | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1cfd59441..13c587398 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-02-20 Archie Cobbs + + * libltdl/ltdl.c (lt_dlopen): use newhandle instead of handle + where appropriate, when dlopening a non-libtool library + 1999-02-19 Gary V. Vaughan * ltconfig.in (export_symbols_cmds): renamed from diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index fcf060e9b..edc927861 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -1194,16 +1194,17 @@ lt_dlopen (filename) handle->depcount = 0; handle->deplibs = 0; newhandle = handle; - if (tryall_dlopen(&handle, filename) + if (tryall_dlopen(&newhandle, filename) && (!dir - || (!find_file(basename, user_search_path, 0, &handle) + || (!find_file(basename, user_search_path, + 0, &newhandle) && !find_file(basename, getenv("LTDL_LIBRARY_PATH"), - 0, &handle) + 0, &newhandle) #ifdef LTDL_SHLIBPATH_VAR && !find_file(basename, getenv(LTDL_SHLIBPATH_VAR), - 0, &handle) + 0, &newhandle) #endif ))) { lt_dlfree(handle); -- 2.47.3