confusing CFLAGS example in manual
Tollef Fog Heen
tfheen at err.no
Sun Jun 20 02:48:34 PDT 2010
]] Peter Johansson
| Hi,
|
| In the example of a .pc file in the manual here
| http://people.freedesktop.org/~dbn/pkg-config-guide.html
| I noticed the line
|
| Cflags: -I${includedir}/foo
|
| which is a bit unexpected. Shouldn't it be
|
| Cflags: -I${includedir}
|
| If I install header files in ${includedir}/foo I expect users to
| include the header as
|
| #include <foo/bar.h>
Well, that depends on whether you want
#include <foo/bar.h>
or
#include <bar.h>
to work. For the former, you want -I${includedir}, for the latter
-I${includedir}/foo.
[...]
| Am I missing somethings?
Nope.
--
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are
More information about the pkg-config
mailing list