From: Yu Ke <[email protected]>

[YOCTO #737]

The AC_CHECK_FUNC([dlopen], [], AC_CHECK_LIB([dl], [dlopen], 
DLOPEN_LIBS="-ldl"))
macro seems not work well in ppc arch, so this patch force the 
DLOPEN_LIBS="-ldl"

Signed-off-by: Yu Ke <[email protected]>

Added Bug info

Signed-off-by: Saul Wold <[email protected]>
---
 .../xorg-xserver/files/force-libdl.patch           |   19 +++++++++++++++++++
 .../xorg-xserver/xserver-xf86-lite_1.10.1.bb       |    5 +++--
 2 files changed, 22 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-graphics/xorg-xserver/files/force-libdl.patch

diff --git a/meta/recipes-graphics/xorg-xserver/files/force-libdl.patch 
b/meta/recipes-graphics/xorg-xserver/files/force-libdl.patch
new file mode 100644
index 0000000..87814c8
--- /dev/null
+++ b/meta/recipes-graphics/xorg-xserver/files/force-libdl.patch
@@ -0,0 +1,19 @@
+configure.ac: force to use DLOPEN_LIBS="-ldl"
+
+The AC_CHECK_FUNC([dlopen], [], AC_CHECK_LIB([dl], [dlopen], 
DLOPEN_LIBS="-ldl"))
+macro seems not work well in ppc arch, so this patch force the 
DLOPEN_LIBS="-ldl"
+
+Signed-off-by: Yu Ke <[email protected]>
+
+diff --git a/configure.ac b/configure.ac
+index 61caaed..46e68d2 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -203,6 +203,7 @@ dnl Check to see if dlopen is in default libraries (like 
Solaris, which
+ dnl has it in libc), or if libdl is needed to get it.
+ AC_CHECK_FUNC([dlopen], [],
+       AC_CHECK_LIB([dl], [dlopen], DLOPEN_LIBS="-ldl"))
++DLOPEN_LIBS="-ldl"
+ AC_SUBST(DLOPEN_LIBS)
+ 
+ dnl Checks for library functions.
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite_1.10.1.bb 
b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite_1.10.1.bb
index f9b3a64..c84478a 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite_1.10.1.bb
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite_1.10.1.bb
@@ -2,11 +2,12 @@ require xserver-xf86-lite.inc
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=74df27b6254cc88d2799b5f4f5949c00"
 
-PR = "r0"
+PR = "r1"
 
 DEPENDS += "font-util"
 
-SRC_URI += "file://crosscompile.patch"
+SRC_URI += "file://crosscompile.patch \
+            file://force-libdl.patch "
 
 # Misc build failure for master HEAD
 SRC_URI += "file://fix_open_max_preprocessor_error.patch;"
-- 
1.7.3.4


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to