From: Gary V. Vaughan Date: Fri, 2 Feb 2001 20:38:53 +0000 (+0000) Subject: * libltdl/ltdl.c (load_deplibs): Make sure the depcount is reset, X-Git-Tag: release-1-3d~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=230d659fccaa63fcac215b77a8447c2230dce2df;p=thirdparty%2Flibtool.git * libltdl/ltdl.c (load_deplibs): Make sure the depcount is reset, even when deplibs are not used because of the patch below. --- diff --git a/ChangeLog b/ChangeLog index ee31ba347..6fa54e67a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ -2001-02-01 Gary V. Vaughan +2001-02-02 Gary V. Vaughan + + * libltdl/ltdl.c (load_deplibs): Make sure the depcount is reset, + even when deplibs are not used because of the patch below. * ltdl.m4 (AC_LTDL_SYS_DLOPEN_DEPLIBS): If we know that the host architecture automatically loads deplibs, then... diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index e39e518c0..4e138ca2b 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -1565,17 +1565,18 @@ load_deplibs(handle, deplibs) lt_dlhandle handle; char *deplibs; { - int ret = 0; - #if LTDL_DLOPEN_DEPLIBS - char *p, *save_search_path; int depcount = 0; int i; char **names = 0; +#endif + int ret = 0; - ret = 1; handle->depcount = 0; + +#if LTDL_DLOPEN_DEPLIBS + ret = 1; if (!deplibs) { return 0;