1require libtool-${PV}.inc 2require remove-buildpaths.inc 3 4FILESEXTRAPATHS =. "${FILE_DIRNAME}/libtool:" 5 6SRC_URI += "file://0008-libtool-Avoid-relinking-when-cross-compiling-its-poi.patch" 7 8inherit nativesdk 9 10S = "${WORKDIR}/libtool-${PV}" 11FILES:${PN} += "${datadir}/libtool/*" 12 13do_install () { 14 autotools_do_install 15 install -d ${D}${bindir}/ 16 install -m 0755 libtool ${D}${bindir}/ 17} 18 19SYSROOT_PREPROCESS_FUNCS += "libtoolnativesdk_sysroot_preprocess" 20 21libtoolnativesdk_sysroot_preprocess () { 22 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ 23 install -m 755 ${D}${bindir}/libtool ${SYSROOT_DESTDIR}${bindir_crossscripts}/libtool 24} 25