diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2013-11-07 10:10:47 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-11-18 23:12:18 +0100 |
commit | 63be0ff381350e471ebf318baef6a971bd87fe11 (patch) | |
tree | 6d986423ccb10b6b1837f46ca1f4b4904cd6d6e4 /meta-networking/recipes-protocols | |
parent | e91315fc217cdc925f1f0a7a74df7ca50b31acd7 (diff) | |
download | meta-openembedded-63be0ff381350e471ebf318baef6a971bd87fe11.tar.gz |
accel-ppp: fix qa issue 'found library in wrong location' while multilib enabled on qemux86-64
While multilib enabled on qemux86-64, accel-ppp-lib should be installed to
'${baselib}/accel-ppp', but the accel-ppp's CMakeLists.txt hardcoded
to install to 'lib/accel-ppp', such as:
...
INSTALL(TARGETS log_file
LIBRARY DESTINATION lib/accel-ppp
)
...
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking/recipes-protocols')
-rw-r--r-- | meta-networking/recipes-protocols/accel-ppp/accel-ppp_git.bb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/accel-ppp/accel-ppp_git.bb b/meta-networking/recipes-protocols/accel-ppp/accel-ppp_git.bb index a7c10f797..dde1f43da 100644 --- a/meta-networking/recipes-protocols/accel-ppp/accel-ppp_git.bb +++ b/meta-networking/recipes-protocols/accel-ppp/accel-ppp_git.bb | |||
@@ -30,3 +30,12 @@ PACKAGES =+ "${PN}-libs" | |||
30 | FILES_${PN}-libs = "${libdir}/${BPN}/*.so /usr/lib/${BPN}/*.so" | 30 | FILES_${PN}-libs = "${libdir}/${BPN}/*.so /usr/lib/${BPN}/*.so" |
31 | INSANE_SKIP_${PN}-libs = "dev-so" | 31 | INSANE_SKIP_${PN}-libs = "dev-so" |
32 | RDEPENDS_${PN} += "${PN}-libs" | 32 | RDEPENDS_${PN} += "${PN}-libs" |
33 | |||
34 | do_install_prepend() { | ||
35 | cmlist=`find ${S} -name CMakeLists.txt` | ||
36 | for file in $cmlist; do | ||
37 | sed -i -e "s:LIBRARY DESTINATION lib/accel-ppp:LIBRARY DESTINATION ${baselib}/accel-ppp:g" \ | ||
38 | -e "s:\${CMAKE_INSTALL_PREFIX}/lib/accel-ppp:\${CMAKE_INSTALL_PREFIX}/${baselib}/accel-ppp:g" \ | ||
39 | $cmlist | ||
40 | done | ||
41 | } | ||