mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 09:49:32 +02:00
libtool: 2.4.5 -> 2.4.6
Drop patch merged upstream. (From OE-Core rev: cd03ef79b50ed42b9d407ee45fc3e3321385281c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
26
meta/recipes-devtools/libtool/libtool_2.4.6.bb
Normal file
26
meta/recipes-devtools/libtool/libtool_2.4.6.bb
Normal file
@@ -0,0 +1,26 @@
|
||||
require libtool-${PV}.inc
|
||||
|
||||
RDEPENDS_${PN} += "bash"
|
||||
|
||||
#
|
||||
# We want the results of libtool-cross preserved - don't stage anything ourselves.
|
||||
#
|
||||
SYSROOT_PREPROCESS_FUNCS += "libtool_sysroot_preprocess"
|
||||
|
||||
do_install_append () {
|
||||
sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \
|
||||
-e 's@${STAGING_DIR_HOST}@@g' \
|
||||
-e 's@^\(sys_lib_search_path_spec="\).*@\1${libdir} ${base_libdir}"@' \
|
||||
-e 's@^\(compiler_lib_search_dirs="\).*@\1${libdir} ${base_libdir}"@' \
|
||||
-e 's@^\(compiler_lib_search_path="\).*@\1${libdir} ${base_libdir}"@' \
|
||||
-e 's@^\(predep_objects="\).*@\1"@' \
|
||||
-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/*
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user