mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-30 14:30:15 +08:00
* libltdl/ltdl.c (lt_dlopen, non-.la): find_file now returns 0 on
failure
This commit is contained in:
parent
9b2ff91e8e
commit
09616d6977
@ -1,5 +1,8 @@
|
||||
1999-01-27 Alexandre Oliva <oliva@dcc.unicamp.br>
|
||||
|
||||
* libltdl/ltdl.c (lt_dlopen, non-.la): find_file now returns 0 on
|
||||
failure
|
||||
|
||||
* Makefile.am (ltconfig, ltmain.sh): some broken makes don't like
|
||||
macros in targets; replace $(srcdir) with @srcdir@
|
||||
* configure.in (ACINCLUDE_M4_LIST): same problem; expand $srcdir
|
||||
|
@ -1150,8 +1150,6 @@ lt_dlopen (filename)
|
||||
}
|
||||
if (handle != newhandle) {
|
||||
unload_deplibs(handle);
|
||||
free(handle);
|
||||
handle = newhandle;
|
||||
}
|
||||
} else {
|
||||
/* not a libtool module */
|
||||
@ -1169,12 +1167,14 @@ lt_dlopen (filename)
|
||||
newhandle = handle;
|
||||
if (tryall_dlopen(&handle, filename)
|
||||
&& (!dir
|
||||
|| (find_file(basename, user_search_path, 0, &handle)
|
||||
&& find_file(basename, getenv("LTDL_LIBRARY_PATH"),
|
||||
0, &handle)
|
||||
|| (!find_file(basename, user_search_path, 0, &handle)
|
||||
&& !find_file(basename,
|
||||
getenv("LTDL_LIBRARY_PATH"),
|
||||
0, &handle)
|
||||
#ifdef LTDL_SHLIBPATH_VAR
|
||||
&& find_file(basename, getenv(LTDL_SHLIBPATH_VAR),
|
||||
0, &handle)
|
||||
&& !find_file(basename,
|
||||
getenv(LTDL_SHLIBPATH_VAR),
|
||||
0, &handle)
|
||||
#endif
|
||||
))) {
|
||||
free(handle);
|
||||
@ -1182,10 +1182,10 @@ lt_dlopen (filename)
|
||||
free(dir);
|
||||
return 0;
|
||||
}
|
||||
if (handle != newhandle) {
|
||||
free(handle);
|
||||
handle = newhandle;
|
||||
}
|
||||
}
|
||||
if (newhandle != handle) {
|
||||
free(handle);
|
||||
handle = newhandle;
|
||||
}
|
||||
if (!handle->usage) {
|
||||
handle->usage = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user