qemu: fix qemu-native pkg-config paths
authorCristian Iorga <cristian.iorga@intel.com>
Thu, 3 Jul 2014 12:57:32 +0000 (15:57 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Jul 2014 16:41:16 +0000 (17:41 +0100)
commite89749ff5a2cba6c86c0e8cf865423c5a1a7ad1a
tree4a1baf87240e8a3b550645519dae9f0d2cc10dea
parent503621a198159824a7fb3a7eda2943da95540fcb
qemu: fix qemu-native pkg-config paths

For qemu-native, the pkg-config paths do not
include build host paths.
This is an issue for libsdl for example, where SDL is
used by qemu, but for qemu-native libsdl-native is not
built, but assumed to be provided by the build host.
Because pkg-config do not search for libsdl config files
on the build host sysroot, the configure stage of qemu-native
will fail because it will not find SDL as being installed.
Usually, the isssue is masked by a functional sdl-config that
will be interogated instead of pkg-config. However, on Build
Appliance, sdl-config is deliberately made non-functional,
so the issue manifests itself.

The fix will create an extended PKG_CONFIG_PATH, which does
include the build host sysroot paths for pkg-config.

Fix for [YOCTO #6495].

(From OE-Core rev: 68a5ed337f8f7ee8e5bf55542ec82d786eb754db)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/qemu/qemu.inc