blob: b02620b4b41e75948d11c8fa86471f61ca59e3db [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#
Patrick Williamsc0f7c042017-02-23 20:41:17 -06008SYSROOT_DIRS_BLACKLIST += " \
9 ${bindir} \
10 ${datadir}/aclocal \
11 ${datadir}/libtool/build-aux \
12"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013
Brad Bishop6e60e8b2018-02-01 10:27:11 -050014ACLOCALEXTRAPATH_class-target = ""
15
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016do_install_append () {
17 sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050018 -e "s@${DEBUG_PREFIX_MAP}@@g" \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019 -e 's@${STAGING_DIR_HOST}@@g' \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050020 -e 's@${STAGING_DIR_NATIVE}@@g' \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021 -e 's@^\(sys_lib_search_path_spec="\).*@\1${libdir} ${base_libdir}"@' \
22 -e 's@^\(compiler_lib_search_dirs="\).*@\1${libdir} ${base_libdir}"@' \
23 -e 's@^\(compiler_lib_search_path="\).*@\1${libdir} ${base_libdir}"@' \
24 -e 's@^\(predep_objects="\).*@\1"@' \
25 -e 's@^\(postdep_objects="\).*@\1"@' \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050026 -e "s@${HOSTTOOLS_DIR}/@@g" \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027 -i ${D}${bindir}/libtool
28}