blob: 45f1b2f3a977a3bbc85bc6e8c7f0585c68f2a9f2 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001require libtool-${PV}.inc
2
3RDEPENDS_${PN} += "bash"
4
5#
6# We want the results of libtool-cross preserved - don't stage anything ourselves.
7#
8SYSROOT_PREPROCESS_FUNCS += "libtool_sysroot_preprocess"
9
10do_install_append () {
11 sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \
12 -e 's@${STAGING_DIR_HOST}@@g' \
13 -e 's@^\(sys_lib_search_path_spec="\).*@\1${libdir} ${base_libdir}"@' \
14 -e 's@^\(compiler_lib_search_dirs="\).*@\1${libdir} ${base_libdir}"@' \
15 -e 's@^\(compiler_lib_search_path="\).*@\1${libdir} ${base_libdir}"@' \
16 -e 's@^\(predep_objects="\).*@\1"@' \
17 -e 's@^\(postdep_objects="\).*@\1"@' \
18 -i ${D}${bindir}/libtool
19}
20
21libtool_sysroot_preprocess () {
22 rm -rf ${SYSROOT_DESTDIR}${bindir}/*
23 rm -rf ${SYSROOT_DESTDIR}${datadir}/aclocal/*
24 rm -rf ${SYSROOT_DESTDIR}${datadir}/libtool/build-aux/*
25}
26