blob: 44a49505749cc2e531d2600ec9c8256a4698b340 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001require libtool-${PV}.inc
2
Patrick Williams93c203f2021-10-06 16:15:23 -05003SRC_URI += "file://multilib.patch"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08004
Patrick Williams213cb262021-08-07 19:21:33 -05005RDEPENDS:${PN} += "bash"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006
7#
8# We want the results of libtool-cross preserved - don't stage anything ourselves.
9#
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000010SYSROOT_DIRS_IGNORE += " \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060011 ${bindir} \
12 ${datadir}/aclocal \
13 ${datadir}/libtool/build-aux \
14"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015
Patrick Williams213cb262021-08-07 19:21:33 -050016ACLOCALEXTRAPATH:class-target = ""
Brad Bishop6e60e8b2018-02-01 10:27:11 -050017
Patrick Williams213cb262021-08-07 19:21:33 -050018do_install:append () {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019 sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050020 -e "s@${DEBUG_PREFIX_MAP}@@g" \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021 -e 's@${STAGING_DIR_HOST}@@g' \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050022 -e 's@${STAGING_DIR_NATIVE}@@g' \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023 -e 's@^\(sys_lib_search_path_spec="\).*@\1${libdir} ${base_libdir}"@' \
24 -e 's@^\(compiler_lib_search_dirs="\).*@\1${libdir} ${base_libdir}"@' \
25 -e 's@^\(compiler_lib_search_path="\).*@\1${libdir} ${base_libdir}"@' \
26 -e 's@^\(predep_objects="\).*@\1"@' \
27 -e 's@^\(postdep_objects="\).*@\1"@' \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050028 -e "s@${HOSTTOOLS_DIR}/@@g" \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029 -i ${D}${bindir}/libtool
30}
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080031
32inherit multilib_script
33
34MULTILIB_SCRIPTS = "${PN}:${bindir}/libtool"