* [PATCH] qemu.inc: Allow optional use of pkg-config from the HOST
@ 2014-07-30 13:42 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2014-07-30 13:42 UTC (permalink / raw)
To: openembedded-core
Currently, if pkg-config isn't installed on the build system, this code
can cause an error. We don't need to require this, only use it if its
present so allow the test to fail gracefully.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 3cb8536..ddf40f7 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -35,8 +35,10 @@ export LIBTOOL="${HOST_SYS}-libtool"
do_configure_prepend_class-native() {
# Append build host pkg-config paths for native target since the host may provide sdl
- BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config)
- export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH
+ BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "")
+ if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then
+ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH
+ fi
# Undo the -lX11 added by linker-flags.patch, don't assume that host has libX11 installed
sed -i 's/-lX11//g' Makefile.target
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-30 13:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-30 13:42 [PATCH] qemu.inc: Allow optional use of pkg-config from the HOST Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox