Patchwork [2/2] qemu: Poke more paths for presence of libgl

login
register
mail settings
Submitter Khem Raj
Date Aug. 8, 2011, 6:14 a.m.
Message ID <1312784043-3081-2-git-send-email-raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/9497/
State New, archived
Headers show

Comments

Khem Raj - Aug. 8, 2011, 6:14 a.m.
On ubuntu 11.10 libGL is not in
/usr/lib/`uname -i`-linux-gnu/ directory
so we search this dir too.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-devtools/qemu/qemu.inc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Richard Purdie - Aug. 9, 2011, 2:21 p.m.
On Sun, 2011-08-07 at 23:14 -0700, Khem Raj wrote:
> On ubuntu 11.10 libGL is not in
> /usr/lib/`uname -i`-linux-gnu/ directory
> so we search this dir too.
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/recipes-devtools/qemu/qemu.inc |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)

Merged to master, thanks.

Richard

Patch

diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index ac8a3eb..85476d6 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -26,6 +26,7 @@  do_configure_prepend_virtclass-native() {
 
     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/pkgconfig/sdl.pc -o -e /usr/lib64/pkgconfig/sdl.pc -o -e /usr/include/SDL/SDL.h && libsdl='yes'