[CMake] anybody crosscompiling and using pkg_config ?

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Sat Jul 19 04:29:56 EDT 2008


Alexander Neundorf <a.neundorf-work at gmx.net>
writes:

> when crosscompiling, pkg_config shouldn't find packages for the host system, 
> but for the target system. 

Host pkgconfig path will *always* be tried by pkgcofig; regardless of
setting of $PKG_CONFIG_PATH.

Use a target specific 'pkgconfig' tool (e.g. arm-xscale-linux-gnu-pkgconfig)
which is build with proper default searchpaths.  Hence, do not bother with
$PKG_CONFIG_PATH env, but change detection of pkgconfig executable so that
target binaries are preferred.


Enrico



More information about the CMake mailing list