[Top][All Lists]

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

Re: Cyclic dependencies

From: Benjamin Reed
Subject: Re: Cyclic dependencies
Date: Thu, 12 Jun 2003 12:57:35 -0400
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.3; Gecko/20030529

Hash: SHA1

Bob Friesenhahn wrote:

On 12 Jun 2003, Thomas Maier wrote:

I think I have a problem with libtool and cyclic dependencies.  Say, I
want to build two libraries and  a uses things from b and
vice versa.  When compiling these libs without libtool, first I compile
one, then the other.  When linking a program p that uses a *or* b, I
have to link p with a *and* b.  Fine.  I only checked that because I had

Uugh.  Even without libtool, creating libraries with interdependencies
causes portability problems because some linkers (which even includes
linkers in older versions of Linux) require that the libraries be
listed in inverse dependency (left to right) order.

Not only that, but on MacOSX for prebinding to occur all symbols have to be resolvable at link time, and even for linking in general unless you explicitly tell it otherwise (which libtool normally does, but there are cases in which it won't).

For the future portability, I implore that you go with what Bob suggested. :)

- -- Benjamin Reed a.k.a. Ranger Rick --
A computer scientist is someone who, when told to 'Go to Hell', sees
the 'go to', rather than the destination, as harmful.
Version: GnuPG v1.2.2 (Darwin)
Comment: Using GnuPG with Mozilla -


reply via email to

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