summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/libtool
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2016-05-12 10:38:02 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-13 13:40:50 +0100
commit83cdfd77b1b48f2bd648d3a5991eadb7f01f647e (patch)
tree263528afec6b075c17fbd71712219e45a83a2792 /meta/recipes-devtools/libtool
parent3eb358d97f84e3d909986b7168e7384ae8db4126 (diff)
downloadopenembedded-core-83cdfd77b1b48f2bd648d3a5991eadb7f01f647e.tar.gz
openembedded-core-83cdfd77b1b48f2bd648d3a5991eadb7f01f647e.tar.bz2
openembedded-core-83cdfd77b1b48f2bd648d3a5991eadb7f01f647e.zip
libtool: Use SYSROOT_DIRS_BLACKLIST to exclude dirs from the sysroot
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/libtool')
-rw-r--r--meta/recipes-devtools/libtool/libtool_2.4.6.bb13
1 files changed, 5 insertions, 8 deletions
diff --git a/meta/recipes-devtools/libtool/libtool_2.4.6.bb b/meta/recipes-devtools/libtool/libtool_2.4.6.bb
index 3851ec7f83..8858f6eef8 100644
--- a/meta/recipes-devtools/libtool/libtool_2.4.6.bb
+++ b/meta/recipes-devtools/libtool/libtool_2.4.6.bb
@@ -5,7 +5,11 @@ RDEPENDS_${PN} += "bash"
#
# We want the results of libtool-cross preserved - don't stage anything ourselves.
#
-SYSROOT_PREPROCESS_FUNCS += "libtool_sysroot_preprocess"
+SYSROOT_DIRS_BLACKLIST += " \
+ ${bindir} \
+ ${datadir}/aclocal \
+ ${datadir}/libtool/build-aux \
+"
do_install_append () {
sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \
@@ -18,10 +22,3 @@ do_install_append () {
-e 's@^\(postdep_objects="\).*@\1"@' \
-i ${D}${bindir}/libtool
}
-
-libtool_sysroot_preprocess () {
- rm -rf ${SYSROOT_DESTDIR}${bindir}/*
- rm -rf ${SYSROOT_DESTDIR}${datadir}/aclocal/*
- rm -rf ${SYSROOT_DESTDIR}${datadir}/libtool/build-aux/*
-}
-