Patchwork qemu: QEMU fix libtool usage

login
register
mail settings
Submitter Mark Hatle
Date July 12, 2013, 1 a.m.
Message ID <1373590804-13276-1-git-send-email-mark.hatle@windriver.com>
Download mbox | patch
Permalink /patch/53527/
State Accepted
Commit 5c9281e87bcb301827d019e62d009ff2dec51867
Headers show

Comments

Mark Hatle - July 12, 2013, 1 a.m.
QEMU uses the environment variable LIBTOOL by default.  We want to ensure
we set it to the proper libtool version, instead of letting it default to
the host system version.

This corrects target building, and ensures we're linking properly for
native and nativesdk versions.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 meta/recipes-devtools/qemu/qemu.inc | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 7caef6e..d8afd37 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -38,6 +38,8 @@  EXTRA_OECONF_class-nativesdk = "--target-list=${@get_qemu_target_list(d)} --disa
 				--disable-curl \
 				"
 
+export LIBTOOL="${HOST_SYS}-libtool"
+
 do_configure_prepend_class-native() {
 	# Undo the -lX11 added by linker-flags.patch, don't assume that host has libX11 installed
 	sed -i 's/-lX11//g' Makefile.target