libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Libtool 1.3e on i386-unknown-freebsd4.3 FIX


From: Peter Eisentraut
Subject: Libtool 1.3e on i386-unknown-freebsd4.3 FIX
Date: Mon, 23 Apr 2001 20:07:55 +0200 (CEST)

With the patch below I get all *82* tests to pass on this platform.  The
build-relink2.test proclaims:

$ ./build-relink2.test
=== Running build-relink2.test
= Exiting: ../depdemo/l3/libl3.la is not a shared library
$ echo $?
77

Make of that what you wish.  ;-)


2001-04-23  Peter Eisentraut  <address@hidden>

        * libltdl/ltdl.c (lt_dlexit): Quit loop if only resident modules
        are left.

Index: ltdl.c
===================================================================
RCS file: /home/cvs/libtool/libltdl/ltdl.c,v
retrieving revision 1.132
diff -u -r1.132 ltdl.c
--- ltdl.c      2001/04/22 22:50:54     1.132
+++ ltdl.c      2001/04/23 17:39:58
@@ -1384,11 +1384,14 @@
       for (level = 1; handles; ++level)
        {
          lt_dlhandle cur = handles;
+         int saw_nonresident = 0;

          while (cur)
            {
              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))
@@ -1397,6 +1400,9 @@
                    }
                }
            }
+         /* done if only resident modules are left */
+         if (!saw_nonresident)
+           break;
        }

       /* close all loaders */
===snip

-- 
Peter Eisentraut   address@hidden   http://funkturm.homeip.net/~peter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]