[oe-commits] Thomas Zimmermann : qemu: fix build without zlib headers installed on buildhost

git version control git at git.openembedded.org
Tue Mar 16 08:54:06 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: e19f00968b9d865088ef3a45a85825c5fc17edc5
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=e19f00968b9d865088ef3a45a85825c5fc17edc5

Author: Thomas Zimmermann <ml at vdm-design.de>
Date:   Mon Mar 15 16:42:14 2010 +0100

qemu: fix build without zlib headers installed on buildhost

*qemu-native fails to build without zlib-dev package installed on buildhost
*configure script just adds -I. and -I${SRC_DIR} to QEMU_CFLAGS to build checks,
 so it fails to build without headers installed on host
*change DEPENDS from zlib to zlib-native to install zlib headers in staging

Signed-off-by: Thomas Zimmermann <ml at vdm-design.de>

---

 recipes/qemu/qemu_0.12.3.bb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/recipes/qemu/qemu_0.12.3.bb b/recipes/qemu/qemu_0.12.3.bb
index 035b1a5..bc5c251 100644
--- a/recipes/qemu/qemu_0.12.3.bb
+++ b/recipes/qemu/qemu_0.12.3.bb
@@ -1,5 +1,5 @@
 LICENSE = "GPL"
-DEPENDS = "zlib"
+DEPENDS = "zlib-native"
 
 PR = "r0"
 
@@ -32,5 +32,6 @@ EXTRA_OECONF += "--disable-sdl --disable-strip"
 inherit autotools
 
 do_configure() {
+	export QEMU_CFLAGS="-I${STAGING_INCDIR_NATIVE} ${QEMU_CFLAGS}"
 	${S}/configure --prefix=${prefix} ${EXTRA_OECONF}
 }





More information about the Openembedded-commits mailing list