libtool
[Top][All Lists]
Advanced

[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; StumbleUpon.com) Gecko/20030529

-----BEGIN PGP SIGNED MESSAGE-----
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 a.la and b.la.  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 -- http://ranger.befunk.com/
A computer scientist is someone who, when told to 'Go to Hell', sees
the 'go to', rather than the destination, as harmful.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+6LECUu+jZtP2Zf4RAk0AAJ9HmsV93gcIUgRt7E4XjEYrD4ASKQCfVxQi
11ZQhczXh6rC9l6JF7RN0Sc=
=kO7T
-----END PGP SIGNATURE-----





reply via email to

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