cflags problem

Tollef Fog Heen tfheen at
Wed Oct 26 02:03:28 PDT 2005

* Enrico Weigelt 

| * Tollef Fog Heen <tfheen at> schrieb:
| <snip>
| > I wonder if the «ignore list» in pkg-config could be generated from
| > what cpp -v outputs as part of the build process, though..  Patches
| > accepted. :-)
| aehm, what hell of ignore list ?!

It currently removes /usr/include from the list of -I-ed files:

: tfheen at thosu ~ > cat /usr/lib/pkgconfig/xpm.pc

Name: Xpm
Description: X Pixmap Library
Version: 3.5.2
Libs: -L${libdir} -lXpm -lX11 -ldl
Cflags: -I${includedir}
: tfheen at thosu ~ > pkg-config --cflags xpm

: tfheen at thosu ~ >

| pkg-config should not try to repair broken .pc files. Instead we should 
| provide a little integrity check tool, which cries when system pathes
| are found in the .pc file.

I disagree.  pkg-config should DTRT, since what's a system path on one
system might not be it on another system.

Tollef Fog Heen                                                        ,''`.
UNIX is user friendly, it's just picky about who its friends are      : :' :
                                                                      `. `' 

More information about the pkg-config mailing list