Patchwork [CONSOLIDATED,PULL,10/32] scripts/runqemu: modify search paths for libgl

mail settings
Submitter Saul Wold
Date Aug. 18, 2011, 8:55 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/10223/
State New, archived
Headers show


Saul Wold - Aug. 18, 2011, 8:55 p.m.
From: Anders Darander <>

On e.g. Debian libql is found under /usr/lib/x86_64-linux-gnu/
Use a wildcard to match different locations, as uname -i only return unknown on Debian.

Signed-off-by: Anders Darander <>
 scripts/runqemu |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/scripts/runqemu b/scripts/runqemu
index 2b8e88a..ed8c05b 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -388,7 +388,7 @@  libgl='no'
 test -e /usr/lib/ -a -e /usr/lib/ && libgl='yes'
 test -e /usr/lib64/ -a -e /usr/lib64/ && libgl='yes'
-test -e /usr/lib/`uname -i`-linux-gnu/ -a -e /usr/lib/`uname -i`-linux-gnu/ && libgl='yes'
+test -e /usr/lib/*-linux-gnu/ -a -e /usr/lib/*-linux-gnu/ && libgl='yes'
 if [ "$libgl" != 'yes' ]; then
     echo "You need and to exist in your library path to run the QEMU emulator.