libtool: Only apply sysroot mangling to libtool itself (not native/cross/nativesdk)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie 2009-11-30 12:08:39 +00:00
parent 35433abab3
commit 15b5395444
4 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
require libtool_${PV}.bb
PR = "r25"
PR = "r26"
PACKAGES = ""
SRC_URI_append = " file://cross_compile.patch;patch=1 \
file://prefix.patch;patch=1"

View File

@ -1,6 +1,6 @@
require libtool_${PV}.bb
PR = "r19"
PR = "r20"
SRC_URI_append = " file://cross_compile.patch;patch=1 \
file://prefix.patch;patch=1"

View File

@ -1,6 +1,6 @@
require libtool_${PV}.bb
PR = "r0"
PR = "r1"
SRC_URI_append = " file://cross_compile.patch;patch=1"
inherit nativesdk

View File

@ -1,6 +1,6 @@
require libtool.inc
PR = "r16"
PR = "r17"
SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}a.tar.gz \
file://dolt.m4"
@ -15,15 +15,15 @@ inherit autotools_stage
EXTRA_AUTORECONF = "--exclude=libtoolize"
#
# We want the results of libtool-cross preserved - don't stage anything ourselves.
#
SYSROOT_PREPROCESS_FUNCS += "libtool_sysroot_preprocess"
libtool_sysroot_preprocess () {
rm -rf ${SYSROOT_DESTDIR}/${bindir}/*
rm -rf ${SYSROOT_DESTDIR}/${datadir}/aclocal/*
rm -rf ${SYSROOT_DESTDIR}/${datadir}/libtool/config/*
if [ "${PN}" == "libtool" ]; then
rm -rf ${SYSROOT_DESTDIR}/${bindir}/*
rm -rf ${SYSROOT_DESTDIR}/${datadir}/aclocal/*
rm -rf ${SYSROOT_DESTDIR}/${datadir}/libtool/config/*
fi
}