pkg-config --cflags glib-2.0 gives wrong -I dir

Matthias Apitz guru at unixarea.de
Mon Jun 27 06:44:39 UTC 2011


El día Saturday, June 25, 2011 a las 07:20:52PM -0500, Dan Nelson escribió:

> Checking Solaris and SUSE Linux, I see a similar pair of directories:
> 
> solaris$ pkg-config --cflags glib-2.0
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> 
> linux$ pkg-config --cflags glib-2.0 
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> 
> The /usr/lib* directory on each system contains a single file: glibconfig.h. 
> On FreeBSD, this file is in /usr/local/include/glib-2.0/ along with all the
> other headers (headers don't belong in /lib/ anyway).

I totally agree: headers don't belong there. The same is broken for:

$ pkg-config --cflags gtk+-2.0
-D_THREAD_SAFE -D_REENTRANT -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include.......

	matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <guru at unixarea.de> - w http://www.unixarea.de/


More information about the freebsd-questions mailing list