From: Peter Kjellerstedt Date: Thu, 12 May 2016 08:38:02 +0000 (+0200) Subject: libtool: Use SYSROOT_DIRS_BLACKLIST to exclude dirs from the sysroot X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~25920 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83cdfd77b1b48f2bd648d3a5991eadb7f01f647e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git libtool: Use SYSROOT_DIRS_BLACKLIST to exclude dirs from the sysroot Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/libtool/libtool_2.4.6.bb b/meta/recipes-devtools/libtool/libtool_2.4.6.bb index 3851ec7f838..8858f6eef82 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/* -} -