[poky] [BERNARD 06/17] scripts/poky-qemu: fix libGL checks for recent Debian(ish) systems

Joshua Lock josh at linux.intel.com
Thu Nov 3 14:31:18 PDT 2011


On 64bit Debian(ish) systems libGL now lives in /usr/lib/x86_64-gnu/, add an
extra test to the qemu script to check for libGL and libGLU in directories
that match this pattern.

Based on commits by Khem Raj (0350be945877b61eb8125663887fd7ed1c3923ab) and
Anders Darander (1927021c78db1a92254785bbc257c00ed2dfcdba) in OE-Core.

Signed-off-by: Joshua Lock <josh at linux.intel.com>
---
 scripts/poky-qemu |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/scripts/poky-qemu b/scripts/poky-qemu
index c76b3ab..b1c3fc6 100755
--- a/scripts/poky-qemu
+++ b/scripts/poky-qemu
@@ -387,6 +387,7 @@ libgl='no'
 
 test -e /usr/lib/libGL.so -a -e /usr/lib/libGLU.so && libgl='yes'
 test -e /usr/lib64/libGL.so -a -e /usr/lib64/libGLU.so && libgl='yes'
+test -e /usr/lib/*-linux=gnu/libGL.so -a -e /usr/lib/*-linux-gnu/libGLU.so && libgl='yes'
 
 if [ "$libgl" != 'yes' ]; then
     echo "You need libGL.so and libGLU.so to exist in your library path to run the QEMU emulator.
-- 
1.7.7




More information about the poky mailing list