blob: e3ad6721fdf963d1c4846c5a526469818cb33449 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001require libtool-${PV}.inc
2
3FILESEXTRAPATHS =. "${FILE_DIRNAME}/libtool:"
4
5SRC_URI += "file://prefix.patch"
6SRC_URI += "file://fixinstall.patch"
7
8inherit nativesdk
9
10S = "${WORKDIR}/libtool-${PV}"
Patrick Williams213cb262021-08-07 19:21:33 -050011FILES:${PN} += "${datadir}/libtool/*"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012
Patrick Williams213cb262021-08-07 19:21:33 -050013do_configure:prepend () {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014 # Remove any existing libtool m4 since old stale versions would break
15 # any upgrade
16 rm -f ${STAGING_DATADIR}/aclocal/libtool.m4
17 rm -f ${STAGING_DATADIR}/aclocal/lt*.m4
18}
19
20do_install () {
21 autotools_do_install
22 install -d ${D}${bindir}/
23 install -m 0755 ${HOST_SYS}-libtool ${D}${bindir}/
24}
25
26SYSROOT_PREPROCESS_FUNCS += "libtoolnativesdk_sysroot_preprocess"
27
28libtoolnativesdk_sysroot_preprocess () {
29 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
30 install -m 755 ${D}${bindir}/${HOST_SYS}-libtool ${SYSROOT_DESTDIR}${bindir_crossscripts}/${HOST_SYS}-libtool
31}