Skip to contentSkip to conversation

fix qt-mobility-x11 build failure

PATCH New [email protected] 1 participant 2 messages Jun 24, 2013

lore
Share & tools
lore
#0 lore raw

cover fix qt-mobility-x11 build failure

From: "Roy.Li" <[email protected]>

The following changes since commit b2df9eef5a99e1d5a9dd262c1091b409a8c8174d:

psplash: Bump PR to allow removal of PRINC from meta-yocto (2013-06-21 14:23:16 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib roy/qt-mobility
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=roy/qt-mobility

Roy.Li (1):
qt-mobility: remove /usr/lib from ld rpath-link option

 meta/recipes-qt/qt4/qt-mobility_1.2.0.inc |    6 ++++++
 1 file changed, 6 insertions(+)
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 qt-mobility: remove /usr/lib from ld rpath-link option

From: "Roy.Li" <[email protected]>

Remove /usr/lib from ld rpath-link option to fix the below build error:

bitbake_build/tmp/sysroots/x86-kvm-guest/usr/lib/libpng16.so.16:
undefined reference to `inflateReset2@ZLIB_1.2.3.4'

since sysroot seems not work for rpath-link, and "rpath-link,/usr/lib" makes ld to search host libraries for target libraries, once host has different version zlib, the error will happen.

qmake uses QT_MOBILITY_LIB to generate "rpath-link,/usr/lib" when do_configure but we can not add sysroot into QT_MOBILITY_LIB, since QT_MOBILITY_LIB is dir which libraries will be installed to, so I remove this dir from rpath-link before do_compile

---
 meta/recipes-qt/qt4/qt-mobility_1.2.0.inc |    6 ++++++
 1 file changed, 6 insertions(+)
meta/recipes-qt/qt4/qt-mobility_1.2.0.inc +6 -0
index b0e4278..aba84ab 100644
@@ -59,6 +59,12 @@ do_configure_prepend() {
 	echo CONFIG += ${qtm_embedded} >>./config.pri
 }
 
+do_compile_prepend() {
+	for NAME in `find ./ -name Makefile` ; do
+	    sed -e 's:-Wl,-rpath-link,${libdir}::g' -i $NAME 
+	done
+}
+
 do_install() {
 	for NAME in */*.prf
 	do
Signature · 1 line
1.7.10.4