qt-mobility: remove /usr/lib from ld rpath-link option
authorRoy.Li <rongqing.li@windriver.com>
Mon, 24 Jun 2013 05:08:03 +0000 (13:08 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Jun 2013 16:44:57 +0000 (17:44 +0100)
commit26562a28cf1335e2b520b866b03a26e195f092de
tree5e2a973f2c6646f7df2676e5e11bc1b02d7de9f3
parent85a8d2476893c8af243678136a66647cbe63ce84
qt-mobility: remove /usr/lib from ld rpath-link option

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

(From OE-Core rev: f7409a9fe83ba2535a43f39ed57cd78242a88557)

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-qt/qt4/qt-mobility_1.2.0.inc