Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | require libtool-${PV}.inc |
| 2 | |
| 3 | DEPENDS = "" |
| 4 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | inherit native |
| 6 | |
| 7 | EXTRA_OECONF = " --with-libtool-sysroot=${STAGING_DIR_NATIVE}" |
| 8 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 9 | do_configure:prepend () { |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | # Remove any existing libtool m4 since old stale versions would break |
| 11 | # any upgrade |
| 12 | rm -f ${STAGING_DATADIR}/aclocal/libtool.m4 |
| 13 | rm -f ${STAGING_DATADIR}/aclocal/lt*.m4 |
| 14 | } |
| 15 | |
| 16 | do_install () { |
| 17 | autotools_do_install |
| 18 | install -d ${D}${bindir}/ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 19 | install -m 0755 libtool ${D}${bindir}/libtool |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 20 | } |