[oe-commits] Shiqun Lin : libtool: remove build host paths from installed libtool
git at git.openembedded.org
git at git.openembedded.org
Wed Nov 12 15:39:02 UTC 2014
Module: openembedded-core.git
Branch: master
Commit: d27c4226f600584f83f66c86b0988a165e8ecb75
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d27c4226f600584f83f66c86b0988a165e8ecb75
Author: Shiqun Lin <Shiqun.Lin at windriver.com>
Date: Mon Nov 3 17:08:42 2014 +0800
libtool: remove build host paths from installed libtool
Resulted libtool contains references about paths from the build host
Below variables contains hard coded build paths from the host:
LTCC=
lt_sysroot=
sys_lib_search_path_spec=
LD=
CC=
compiler_lib_search_dirs=
predep_objects=
postdep_objects=
compiler_lib_search_path=
Signed-off-by: Shiqun Lin <Shiqun.Lin at windriver.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/recipes-devtools/libtool/libtool_2.4.2.bb | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/meta/recipes-devtools/libtool/libtool_2.4.2.bb b/meta/recipes-devtools/libtool/libtool_2.4.2.bb
index d3f9428..6064312 100644
--- a/meta/recipes-devtools/libtool/libtool_2.4.2.bb
+++ b/meta/recipes-devtools/libtool/libtool_2.4.2.bb
@@ -9,6 +9,17 @@ RDEPENDS_${PN} += "bash"
#
SYSROOT_PREPROCESS_FUNCS += "libtool_sysroot_preprocess"
+do_install_append () {
+ sed -e 's at --sysroot=${STAGING_DIR_HOST}@@g' \
+ -e 's@${STAGING_DIR_HOST}@@g' \
+ -e 's@^\(sys_lib_search_path_spec="\).*@\1${libdir} ${base_libdir}"@' \
+ -e 's@^\(compiler_lib_search_dirs="\).*@\1${libdir} ${base_libdir}"@' \
+ -e 's@^\(compiler_lib_search_path="\).*@\1${libdir} ${base_libdir}"@' \
+ -e 's@^\(predep_objects="\).*@\1"@' \
+ -e 's@^\(postdep_objects="\).*@\1"@' \
+ -i ${D}${bindir}/libtool
+}
+
libtool_sysroot_preprocess () {
rm -rf ${SYSROOT_DESTDIR}${bindir}/*
rm -rf ${SYSROOT_DESTDIR}${datadir}/aclocal/*
More information about the Openembedded-commits
mailing list