summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/libtool/nativesdk-libtool_2.4.2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/libtool/nativesdk-libtool_2.4.2.bb')
-rw-r--r--meta/recipes-devtools/libtool/nativesdk-libtool_2.4.2.bb35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-devtools/libtool/nativesdk-libtool_2.4.2.bb b/meta/recipes-devtools/libtool/nativesdk-libtool_2.4.2.bb
new file mode 100644
index 0000000..fff15e9
--- /dev/null
+++ b/meta/recipes-devtools/libtool/nativesdk-libtool_2.4.2.bb
@@ -0,0 +1,35 @@
1require libtool-${PV}.inc
2
3PR = "${INC_PR}.0"
4
5FILESEXTRAPATHS =. "${FILE_DIRNAME}/libtool:"
6
7SRC_URI += "file://prefix.patch"
8SRC_URI += "file://fixinstall.patch"
9
10inherit nativesdk
11
12S = "${WORKDIR}/libtool-${PV}"
13FILES_${PN} += "${datadir}/libtool/*"
14
15do_configure_prepend () {
16 # Remove any existing libtool m4 since old stale versions would break
17 # any upgrade
18 rm -f ${STAGING_DATADIR}/aclocal/libtool.m4
19 rm -f ${STAGING_DATADIR}/aclocal/lt*.m4
20}
21
22do_install () {
23 autotools_do_install
24 install -d ${D}${bindir}/
25 install -m 0755 ${HOST_SYS}-libtool ${D}${bindir}/
26}
27
28SYSROOT_PREPROCESS_FUNCS += "libtoolnativesdk_sysroot_preprocess"
29
30libtoolnativesdk_sysroot_preprocess () {
31 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
32 install -m 755 ${D}${bindir}/${HOST_SYS}-libtool ${SYSROOT_DESTDIR}${bindir_crossscripts}/${HOST_SYS}-libtool
33}
34
35export CONFIG_SHELL="/bin/bash"