libtool
[Top][All Lists]
Advanced

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

dependency_libs?


From: Andreas Volz
Subject: dependency_libs?
Date: Sun, 30 Apr 2006 11:36:02 +0200

Hi,

I build my library with GNU autotools and link to it with the
pkg-config --uninstalled option without installing it. In this case a
la-file (libmhgui.la) is created. I've some problems to understand how
libtool generated the dependency_libs field. In my package is a
--with-x/--without-x option from AC_PATH_X.  But the la-file has the X
libraries in its dependency_libs field. So how does libtool generate
this field?

see this file build on Gentoo Linux:

# libmhgui.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18
22:14:06)
...
# Libraries that this one depends upon.
dependency_libs='
-L/tmp/animorph/lib /tmp/animorph/lib/libanimorph.la 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.la
-L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib
-L/usr/lib/gcc-lib/i686-pc-linux-gnu/../../../i686-pc-linux-gnu/l
ib /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../..//libglut.la 
/usr/lib/libGL.la
-L/usr/lib /usr/lib/libGLU.la -lXxf86vm /
usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../..//libGLU.la -lGL -lSM
-lICE -lXmu -lXt -lXi -lpthread /usr/lib/gcc-lib/i686-
pc-linux-gnu/3.3.6/../../..//libGL.la -lX11 -lXext -ldl
-lpng /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6//libstdc++.la'

I don't like the link to -lX* if I use --without-x!

And it's interesting that if I build the same application on Debian, I
get another (working!!) libmhgui.la:

# libmhgui.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5.6 (1.1220.2.95 2004/04/11
05:50:42) Debian: 224 $
...
# Libraries that this one depends upon.
dependency_libs=' /home/andreas/src/MakeHuman/cvs/animorph/src/libanimorph.la
-l glut -lGLU -lGL -lpng 

This is what I expect for dependency_libs! So why is the result on
Gentoo wrong? Please pay attention to the different libtool versions.
May this be a problem? And in the Debian case is also a relink_command 
field in libmhgui.la.

Please try to explain me this libtool magic.

regards
Andreas




reply via email to

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