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 | |
| 14 | do_install_append () { |
| 15 | sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \ |
| 16 | -e 's@${STAGING_DIR_HOST}@@g' \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 17 | -e 's@${STAGING_DIR_NATIVE}@@g' \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | -e 's@^\(sys_lib_search_path_spec="\).*@\1${libdir} ${base_libdir}"@' \ |
| 19 | -e 's@^\(compiler_lib_search_dirs="\).*@\1${libdir} ${base_libdir}"@' \ |
| 20 | -e 's@^\(compiler_lib_search_path="\).*@\1${libdir} ${base_libdir}"@' \ |
| 21 | -e 's@^\(predep_objects="\).*@\1"@' \ |
| 22 | -e 's@^\(postdep_objects="\).*@\1"@' \ |
| 23 | -i ${D}${bindir}/libtool |
| 24 | } |