libtool
[Top][All Lists]
Advanced

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

Re: Libtool and Pkg-Config


From: Alexandre Oliva
Subject: Re: Libtool and Pkg-Config
Date: 22 Apr 2001 07:47:54 -0300
User-agent: Gnus/5.090002 (Oort Gnus v0.02) XEmacs/21.1 (Cuyahoga Valley)

On Apr 22, 2001, Havoc Pennington <address@hidden> wrote:

> pkg-config has some intelligence, i.e. if you request two libs at once
> it will nuke duplicate flags and order the -l flags properly.

Err...  It won't always remove duplicate -l flags, will it?  This
isn't always correct.

> Also, it can gripe about missing dependencies or conflicting
> libraries.

Good.

> I think for libtool it's as simple as having a concept of a "package"
> in addition to a concept of a library, so we can pass "gtk+-2.0" to
> libtool instead of "-L/home/hp/unst/lib -L/usr/X11R6/lib -lgtk-x11-1.3
> -lgdk-x11-1.3 -lXext -lgdk_pixbuf-1.3 -lm -lpangox -lX11 -lpango
> -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3"

Well, you can already create a dummy libtool library that will be
replaced with all of this when it's linked in.  In fact,
gtk-x11-1.3.la may be that (no longer dummy) library.

> Then the remaining thing to add is the RPM-style version comparisons,
> which is beyond my ability to implement in shell, but I'm sure someone
> can figure it out. ;-)

In shell?  I was hoping pkg-config could be implemented in something
more reasonable...

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  address@hidden, redhat.com}
CS PhD student at IC-Unicamp        address@hidden, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



reply via email to

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