From: Archie Cobbs Date: Sat, 20 Feb 1999 05:23:31 +0000 (+0000) Subject: * libltdl/ltdl.c (lt_dlopen): use newhandle instead of handle X-Git-Tag: release-1-2f~111 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7666c21afdfe68006b875fb5dff82e7ade9c720f;p=thirdparty%2Flibtool.git * libltdl/ltdl.c (lt_dlopen): use newhandle instead of handle where appropriate, when dlopening a non-libtool library --- 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);