I've setup devel environment so that all development libraries are installed on
chrooted enviroment, which is basically Dapper with ubuntu-minimal package
installed and bunch of libraries.
I can compile programs there nicely, but I'd like to compile programs from my
main environment, and use libraries & headers from chrooted environment.
I've got this almos working by using PKG_CONFIG_PATH=/chroot/dapper-dev/usr/lib/pkgconfig
when configuring packages, but what I don't get is how to tell pkg-config that
package prefix should be /chroot/dapper/dev...
For example
that should be -I/chroot/dapper/dev/usr/include/glib-2.0 for my setup I presume?Code:pkg-config --cflags glib-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
I've only found --define-variable=prefix fooprefix from pkg-config manual, but
there must be easier way to set that prefix for all .pc files on /chroot/dapper-dev/usr/lib/pkgconfig ?
Bookmarks