Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | require libtool-${PV}.inc |
| 2 | |
| 3 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/libtool:" |
| 4 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | SRC_URI += "file://fixinstall.patch" |
| 6 | |
| 7 | inherit nativesdk |
| 8 | |
| 9 | S = "${WORKDIR}/libtool-${PV}" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 10 | FILES:${PN} += "${datadir}/libtool/*" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 12 | do_configure:prepend () { |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 13 | # 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 | |
| 19 | do_install () { |
| 20 | autotools_do_install |
| 21 | install -d ${D}${bindir}/ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame^] | 22 | install -m 0755 libtool ${D}${bindir}/ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | SYSROOT_PREPROCESS_FUNCS += "libtoolnativesdk_sysroot_preprocess" |
| 26 | |
| 27 | libtoolnativesdk_sysroot_preprocess () { |
| 28 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame^] | 29 | install -m 755 ${D}${bindir}/libtool ${SYSROOT_DESTDIR}${bindir_crossscripts}/libtool |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 30 | } |