Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | require libtool-${PV}.inc |
| 2 | |
| 3 | RDEPENDS_${PN} += "bash" |
| 4 | |
| 5 | # |
| 6 | # We want the results of libtool-cross preserved - don't stage anything ourselves. |
| 7 | # |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 8 | SYSROOT_DIRS_BLACKLIST += " \ |
| 9 | ${bindir} \ |
| 10 | ${datadir}/aclocal \ |
| 11 | ${datadir}/libtool/build-aux \ |
| 12 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 13 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 14 | ACLOCALEXTRAPATH_class-target = "" |
| 15 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | do_install_append () { |
| 17 | sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 18 | -e "s@${DEBUG_PREFIX_MAP}@@g" \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | -e 's@${STAGING_DIR_HOST}@@g' \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 20 | -e 's@${STAGING_DIR_NATIVE}@@g' \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | -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 Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 26 | -e "s@${HOSTTOOLS_DIR}/@@g" \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | -i ${D}${bindir}/libtool |
| 28 | } |