[Top][All Lists]

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

Re: dependency_libs?

From: Bob Friesenhahn
Subject: Re: dependency_libs?
Date: Sun, 30 Apr 2006 14:57:25 -0500 (CDT)

On Sun, 30 Apr 2006, Russ Allbery wrote:

# Libraries that this one depends upon.
dependency_libs=' /home/andreas/src/MakeHuman/cvs/animorph/src/
-l glut -lGLU -lGL -lpng

I expect that one of glut, GLU, and GL depend on the X libraries, and
hence when libtool resolves transitive dependencies through the .la files,
it pulls in the other libraries.

This is one of the problems with .la files currently.  It doesn't have the
correct semantics to distinguish between static builds (and builds on
platforms with deficient shared library handling) where all transitive
dependencies have to be pulled into the link line and shared builds on
modern platforms where transitive dependencies do not have to be pulled in
and in fact generally *shouldn't* since they make library migrations

In this particular case, it would not matter much if libtool simply applied the X11 libraries out of spite due to it knowing that GLUT depends on X11, or if the OS applied the libraries due to transitive dependencies. The result still does not work unless the X11 libraries are involved.

Bob Friesenhahn
GraphicsMagick Maintainer,

reply via email to

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