blob: 508eade326ba5ed25d8984550e9c0e931cc53412 [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}"
11FILES_${PN} += "${datadir}/libtool/*"
12
13do_configure_prepend () {
14 # 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}