[MPlayer-dev-eng] [PATCH] directfb -> pkg-config

Rich Felker dalias at aerifal.cx
Fri Feb 17 03:35:40 CET 2006


On Thu, Feb 16, 2006 at 11:56:39PM +0100, Aurelien Jacobs wrote:
> On Thu, 16 Feb 2006 17:59:45 -0500
> Rich Felker <dalias at aerifal.cx> wrote:
> 
> > On Thu, Feb 16, 2006 at 11:31:55PM +0100, Enrico Weigelt wrote:
> > > * Rich Felker <dalias at aerifal.cx> schrieb:
> > > 
> > > <snip>
> > > 
> > > > Why should you need a special program to tell you custom CFLAGS, etc.
> > > > for using a library? If the library is properly installed, just -lfoo
> > > > should be sufficient. 
> > > 
> > > Whats with dependencies, custom pathes, etc ?
> > 
> > Custom paths are broken.
> 
> Huh ! And how do you do cross compilation ?

Cross-compiling is a special case that you need to make lots of
preparations to deal with. pkg-config will not magically solve your
problem.

> Also you didn't replied about dependencies. What if certain versions
> of libfoo requires you to add -lbar ?

For dynamic libraries, this is automatically taken care of. For
archive (static) libraries, one solution (perhaps the most proper for
strange dependencies) is including one archive inside the other.
However, for most common libraries, the dependencies are _known_ by
the program using the library, e.g. libpng's dependence on libz.

Seriously, this all worked fine for the past 7 years or so before
there was such a thing as pkg-config. pkg-config is yet another case
of overengineering and inventing a solution to a nonexistant problem,
or rather inventing the problem itself, which seems to be a common
mistake of GNU/Linux these days and leads to endless bloat...

Rich




More information about the MPlayer-dev-eng mailing list