[oe-commits] Anders Darander : scripts/runqemu: modify search paths for libgl

git version control git at git.openembedded.org
Fri Aug 19 16:07:48 UTC 2011


Module: openembedded-core.git
Branch: master
Commit: 66e34066a0ac71f4212824b1e6353a4d323f4e21
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=66e34066a0ac71f4212824b1e6353a4d323f4e21

Author: Anders Darander <anders at chargestorm.se>
Date:   Wed Aug 17 15:19:46 2011 +0200

scripts/runqemu: modify search paths for libgl

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

Signed-off-by: Anders Darander <anders at chargestorm.se>

---

 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/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/`uname -i`-linux-gnu/libGL.so -a -e /usr/lib/`uname -i`-linux-gnu/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.





More information about the Openembedded-commits mailing list