cflags problem

Tollef Fog Heen tfheen at err.no
Thu Oct 20 01:25:15 PDT 2005


* ac 

No need to Cc me, I'm on the list.

| On 10/19/05, Tollef Fog Heen <tfheen at err.no> wrote:
|
| > Why is this a problem?  Do you have overlapping header files between
| > /usr/include (or /usr/local/include) and other places?
| 
| yah, i installed libXrender, renderext, libXft at /usr/local,
| but libXrender failed building , and i can see things like
| `-I/usr/local/include -I/usr/X11R6/include' in the command line.

You don't explain _why_ this is a problem.

| thanks.  `-nostdinc' does work.  but then all system include dirs
| have to be explicit , for some package, and sounds not good.  i
| still think software packager( user of pkg-config ) should use
| `-isystem' instead of `-I' for `-isystem' will be processed after
| `-I' and before standard dirs and wont `does nothing' if dir is a
| system standard dir.

pkg-config doesn't change -I to -isystem, so if you think that's a
sensible thing to do, you have to get it changed in the .pc files.

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. :-)

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


More information about the pkg-config mailing list