qemu: fix build with zlib-dev missing on host
authorRoman I Khimov <khimov@altell.ru>
Mon, 15 Mar 2010 20:55:00 +0000 (23:55 +0300)
committerRoman I Khimov <khimov@altell.ru>
Tue, 16 Mar 2010 19:46:40 +0000 (22:46 +0300)
OE provides its own zlib-native and qemu-native should use that.

Thanks to Thomas Zimmermann <ml@vdm-design.de> for spotting it.

Signed-off-by: Roman I Khimov <khimov@altell.ru>
recipes/qemu/qemu_0.12.3.bb

index 035b1a5..d1971e9 100644 (file)
@@ -1,7 +1,7 @@
 LICENSE = "GPL"
 DEPENDS = "zlib"
 
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "\
     http://download.savannah.gnu.org/releases/qemu/qemu-${PV}.tar.gz;name=qemu-${PV} \
@@ -31,6 +31,10 @@ EXTRA_OECONF += "--disable-sdl --disable-strip"
 
 inherit autotools
 
+do_configure_prepend_virtclass-native() {
+       export QEMU_CFLAGS="-I${STAGING_INCDIR_NATIVE} ${QEMU_CFLAGS}"
+}
+
 do_configure() {
        ${S}/configure --prefix=${prefix} ${EXTRA_OECONF}
 }