even when deplibs are not used because of the patch below.
-2001-02-01 Gary V. Vaughan <gvv@techie.com>
+2001-02-02 Gary V. Vaughan <gvv@techie.com>
+
+ * 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...
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;