[MPlayer-dev-eng] [PATCH] directfb -> pkg-config
Rich Felker
dalias at aerifal.cx
Thu Feb 16 23:59:45 CET 2006
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.
> And how to properly detect if a certain package is installed ?
Test whether -lfoo and #include <foo.h> work.
> > Having pkg-config randomly add its own
> > CFLAGS/LDFLAGS/etc. to your program's build could interfere with other
> > things and is just broken in concept.
> >
> > If the user has installed the library _incorrectly_, such as in odd
> > nonstandard locations, they should know this and use whatever
> > extralibs/extrainclude option is needed.
>
> So you expect the user to patch makefiles by hand for every single
> library just if he hat put it somewhere else than /usr/lib ?
No, I expect them to use --with-extralibs or --with-extraincludes or
whatever if they insist on violating the standards for where things
should be installed.
Rich
More information about the MPlayer-dev-eng
mailing list