Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | require libtool-${PV}.inc |
| 2 | |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame] | 3 | SRC_URI += "file://multilib.patch file://debian-no_hostname.patch" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 4 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 5 | RDEPENDS:${PN} += "bash" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | |
| 7 | # |
| 8 | # We want the results of libtool-cross preserved - don't stage anything ourselves. |
| 9 | # |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 10 | SYSROOT_DIRS_BLACKLIST += " \ |
| 11 | ${bindir} \ |
| 12 | ${datadir}/aclocal \ |
| 13 | ${datadir}/libtool/build-aux \ |
| 14 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 16 | ACLOCALEXTRAPATH:class-target = "" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 17 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 18 | do_install:append () { |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 20 | -e "s@${DEBUG_PREFIX_MAP}@@g" \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | -e 's@${STAGING_DIR_HOST}@@g' \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 22 | -e 's@${STAGING_DIR_NATIVE}@@g' \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | -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 Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 28 | -e "s@${HOSTTOOLS_DIR}/@@g" \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 29 | -i ${D}${bindir}/libtool |
| 30 | } |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 31 | |
| 32 | inherit multilib_script |
| 33 | |
| 34 | MULTILIB_SCRIPTS = "${PN}:${bindir}/libtool" |