Brolley's patch from CVS HEAD.
+2007-01-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * libltdl/ltdl.c (lt_dlexit): Fix my bogus backport of Dave
+ Brolley's patch from CVS HEAD.
+
2007-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [ gnu ]
lt_dlhandle tmp = cur;
cur = cur->next;
if (!LT_DLIS_RESIDENT (tmp))
+ saw_nonresident = 1;
+ if (!LT_DLIS_RESIDENT (tmp) && tmp->info.ref_count <= level)
+ {
+ if (lt_dlclose (tmp))
+ {
+ ++errors;
+ }
/* Make sure that the handle pointed to by 'cur' still exists.
lt_dlclose recursively closes dependent libraries which removes
them from the linked list. One of these might be the one
if (! tmp)
cur = handles;
}
-
- saw_nonresident = 1;
- if (!LT_DLIS_RESIDENT (tmp) && tmp->info.ref_count <= level)
- {
- if (lt_dlclose (tmp))
- {
- ++errors;
- }
}
}
/* done if only resident modules are left */