PKG_CONFIG_PATH

Alexei Babich a.babich at rez.ru
Wed Feb 13 23:11:38 PST 2008


Hi all.
I try to crosscompile "pixman" packet (part of Cairo graphics library). Part of 'pixman' sources - 'configure' script, that invokes pkg-config like this: 'pkg-config --exists --print-errors "gtk+-2.0"'.
My target machine - ARM, but all crosscompiling tools located at host-machine on x86. pkg-config also runs on host-machine.
Target's root filesystem is leaf of host-machine root filesystem: '/' for target is '/mnt/data/clfs' on host-machine.
So, when I before crosscompiling set PKG_CONFIG_PATH variable to '/mnt/data/clfs/usr/lib/pkgconfig', I expect such behavior from the pkg-config: pkg-config must not detect *.pc files on host-machine (at /usr/lib/pkgconfig), because on target machine will not be have GTK. But pkg-config found it on host-machine.

Question: how to disable using by pkg-config other paths, than explicitly defined in PKG_CONFIG_PATH variable ? Or, may be, other way to disable use host-based *.pc files ?

Thank you.
-- 
Regards,
Alexei Babich, chematic engineer, OOO NPP "Rezonans", Chelyabinsk, Russia
http://www.rez.ru
email: a.babich at rez.ru
Jabber ID: impatt at jabber.ru


More information about the pkg-config mailing list