diff options
author | Yu Ke <ke.yu@intel.com> | 2010-10-09 09:47:52 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-11 22:16:42 +0100 |
commit | cecd1bdf6f2680960909d1f0535d1606d04938c1 (patch) | |
tree | 780304f7fab28baa2eb62c562f446a1346cd9b9b /meta | |
parent | 75732f544356d3107e624eb64a2d310c8e048180 (diff) | |
download | poky-cecd1bdf6f2680960909d1f0535d1606d04938c1.tar.gz |
qemugl: remove obsolate /usr/X11R6/lib lib directory
qemugl makefile has "-L/usr/X11R6/lib" to specifiy the X lib dir.
it is actually obsolate in poky now, because poky use Xserver from
X.org (X11R7.x), and its libs are in standard /usr/lib.
Meanwhile,the -L/usr/X11R6/lib will cause warning: library search path
"/usr/X11R6/lib" is unsafe for cross-compilation. so better to remove it.
Fix [BUGID #386]
Signed-off-by: Yu Ke <ke.yu@intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-graphics/mesa/qemugl/remove-x11r6-lib-dir.patch | 19 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/qemugl_git.bb | 5 |
2 files changed, 22 insertions, 2 deletions
diff --git a/meta/recipes-graphics/mesa/qemugl/remove-x11r6-lib-dir.patch b/meta/recipes-graphics/mesa/qemugl/remove-x11r6-lib-dir.patch new file mode 100644 index 0000000000..d14ce891c0 --- /dev/null +++ b/meta/recipes-graphics/mesa/qemugl/remove-x11r6-lib-dir.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Remove X11R6 lib directory | ||
2 | |||
3 | "-L/usr/X11R6/lib" is obsolate in poky. Poky currently use Xserver from X.org (X11R7.x), which puts lib in standard /usr/lib, so no need to specify the extra -L/usr/X11R6/lib. Meanwhile, the -L/usr/X11R6/lib will cause warning: library search path "/usr/X11R6/lib" is unsafe for cross-compilation. so better to remove it. | ||
4 | |||
5 | Signed-off-by: Yu Ke <ke.yu@intel.com> | ||
6 | |||
7 | diff --git a/Makefile b/Makefile | ||
8 | index 9e5a8ea..f3a082a 100644 | ||
9 | --- a/Makefile | ||
10 | +++ b/Makefile | ||
11 | @@ -3,7 +3,7 @@ GL_CFLAGS := -Wall -g -O2 -fno-strict-aliasing | ||
12 | all: libGL.so.1.2 | ||
13 | |||
14 | libGL.so.1.2: client_stub.c opengl_client.c glgetv_cst.h opengl_func.h opengl_utils.h opengl_client_xfonts.c mesa_gl.h mesa_glext.h mesa_glx.h mesa_glxext.h | ||
15 | - $(CC) -fPIC $(GL_CFLAGS) opengl_client.c -shared -o libGL.so.1.2 -lX11 -lXfixes -lm -L$(D)/usr/X11R6/lib -lpthread -I. | ||
16 | + $(CC) -fPIC $(GL_CFLAGS) opengl_client.c -shared -o libGL.so.1.2 -lX11 -lXfixes -lm -lpthread -I. | ||
17 | |||
18 | opengl_func.h: gl_func.h | ||
19 | |||
diff --git a/meta/recipes-graphics/mesa/qemugl_git.bb b/meta/recipes-graphics/mesa/qemugl_git.bb index 184c782722..8f8929117c 100644 --- a/meta/recipes-graphics/mesa/qemugl_git.bb +++ b/meta/recipes-graphics/mesa/qemugl_git.bb | |||
@@ -8,11 +8,12 @@ DEPENDS = "virtual/libx11 xproto glproto libxfixes" | |||
8 | COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)' | 8 | COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)' |
9 | 9 | ||
10 | SRC_URI = "git://git.o-hand.com/qemugl.git;protocol=git \ | 10 | SRC_URI = "git://git.o-hand.com/qemugl.git;protocol=git \ |
11 | file://versionfix.patch" | 11 | file://versionfix.patch \ |
12 | file://remove-x11r6-lib-dir.patch" | ||
12 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
13 | 14 | ||
14 | PV = "0.0+git${SRCPV}" | 15 | PV = "0.0+git${SRCPV}" |
15 | PR = "r6" | 16 | PR = "r7" |
16 | 17 | ||
17 | DEFAULT_PREFERENCE = "-1" | 18 | DEFAULT_PREFERENCE = "-1" |
18 | 19 | ||