summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
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/*