mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
Resulted libtool contains references about paths from the build host Below variables contains hard coded build paths from the host: LTCC= lt_sysroot= sys_lib_search_path_spec= LD= CC= compiler_lib_search_dirs= predep_objects= postdep_objects= compiler_lib_search_path= (From OE-Core rev: d27c4226f600584f83f66c86b0988a165e8ecb75) (From OE-Core rev: b7ab8e045c97d82ed9c424310bb0dbe39cb1dcf0) Signed-off-by: Shiqun Lin <Shiqun.Lin@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
29 lines
906 B
BlitzBasic
29 lines
906 B
BlitzBasic
require libtool-${PV}.inc
|
|
|
|
PR = "${INC_PR}.0"
|
|
|
|
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/config/*
|
|
}
|
|
|