summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorShiqun Lin <Shiqun.Lin@windriver.com>2014-11-03 17:08:42 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-12 15:38:30 +0000
commite9b729d75c2ac3548021de78a25ea7f2511ab6cb (patch)
tree80cccbfab981275aa83d4208f4b668fd1f1e6e78 /meta
parent507947a2b075ac12775d5212512755d6c9f239c7 (diff)
downloadpoky-e9b729d75c2ac3548021de78a25ea7f2511ab6cb.tar.gz
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= (From OE-Core rev: d27c4226f600584f83f66c86b0988a165e8ecb75) Signed-off-by: Shiqun Lin <Shiqun.Lin@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/libtool/libtool_2.4.2.bb11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-devtools/libtool/libtool_2.4.2.bb b/meta/recipes-devtools/libtool/libtool_2.4.2.bb
index d3f94284d4..60643129be 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"
9# 9#
10SYSROOT_PREPROCESS_FUNCS += "libtool_sysroot_preprocess" 10SYSROOT_PREPROCESS_FUNCS += "libtool_sysroot_preprocess"
11 11
12do_install_append () {
13 sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \
14 -e 's@${STAGING_DIR_HOST}@@g' \
15 -e 's@^\(sys_lib_search_path_spec="\).*@\1${libdir} ${base_libdir}"@' \
16 -e 's@^\(compiler_lib_search_dirs="\).*@\1${libdir} ${base_libdir}"@' \
17 -e 's@^\(compiler_lib_search_path="\).*@\1${libdir} ${base_libdir}"@' \
18 -e 's@^\(predep_objects="\).*@\1"@' \
19 -e 's@^\(postdep_objects="\).*@\1"@' \
20 -i ${D}${bindir}/libtool
21}
22
12libtool_sysroot_preprocess () { 23libtool_sysroot_preprocess () {
13 rm -rf ${SYSROOT_DESTDIR}${bindir}/* 24 rm -rf ${SYSROOT_DESTDIR}${bindir}/*
14 rm -rf ${SYSROOT_DESTDIR}${datadir}/aclocal/* 25 rm -rf ${SYSROOT_DESTDIR}${datadir}/aclocal/*