]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (load_deplibs): Make sure the depcount is reset,
authorGary V. Vaughan <gary@gnu.org>
Fri, 2 Feb 2001 20:38:53 +0000 (20:38 +0000)
committerGary V. Vaughan <gary@gnu.org>
Fri, 2 Feb 2001 20:38:53 +0000 (20:38 +0000)
even when deplibs are not used because of the patch below.

ChangeLog
libltdl/ltdl.c

index ee31ba3474f2a4d1edcbc5a621bb41ff0e5e4d3f..6fa54e67ae1aaecdfb339ccf08227dbad63bb63a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
-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...
index e39e518c0fccb413af4bbc091aa76b033e200789..4e138ca2b3e12ffea61bb0af262f9e8be5e8db07 100644 (file)
@@ -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;