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