[oe] Preferred handling of pkg-config in cross compile environments.

Chris Larson clarson at kergoth.com
Sun Oct 10 17:09:07 UTC 2010


On Sun, Oct 10, 2010 at 10:05 AM, Paul Menzel <
paulepanter at users.sourceforge.net> wrote:

> I stumbled upon several programs who call plain `pkg-config` [1][2].
>
> Is the following statement correct?
>
> To be able to cross compile programs correctly, the build files are
> supposed to use the environment variable `PKG_CONFIG` and only call
> pkg-config directly if `PKG_CONFIG` is empty.
>
>        if test -z "${PKG_CONFIG}"; then
>            PKG_CONFIG="pkg-config"
>
> If you agree I would note that somewhere in the Wiki, so that upstream
> can be pointed to some documentation and search the Web will result in
> some useful results.
>

Can you explain why running just 'pkg-config' is a problem?  It seems to
work just fine..
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics



More information about the Openembedded-devel mailing list