summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb')
-rw-r--r--meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb43
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb b/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb
new file mode 100644
index 0000000..72fad37
--- /dev/null
+++ b/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb
@@ -0,0 +1,43 @@
1require libtool-${PV}.inc
2
3PR = "${INC_PR}.1"
4PACKAGES = ""
5SRC_URI += "file://prefix.patch"
6SRC_URI += "file://fixinstall.patch"
7
8datadir = "${STAGING_DIR_TARGET}${target_datadir}"
9
10do_configure_prepend () {
11 # Remove any existing libtool m4 since old stale versions would break
12 # any upgrade
13 rm -f ${STAGING_DATADIR}/aclocal/libtool.m4
14 rm -f ${STAGING_DATADIR}/aclocal/lt*.m4
15}
16
17do_install () {
18 install -d ${D}${bindir_crossscripts}/
19 install -m 0755 ${HOST_SYS}-libtool ${D}${bindir_crossscripts}/${HOST_SYS}-libtool
20 install -d ${D}${bindir_crossscripts}/
21 install -m 0755 libtoolize ${D}${bindir_crossscripts}/
22 install -d ${D}${target_datadir}/libtool/config/
23 install -d ${D}${target_datadir}/aclocal/
24 install -c ${S}/libltdl/config/compile ${D}${target_datadir}/libtool/config/
25 install -c ${S}/libltdl/config/config.guess ${D}${target_datadir}/libtool/config/
26 install -c ${S}/libltdl/config/config.sub ${D}${target_datadir}/libtool/config/
27 install -c ${S}/libltdl/config/depcomp ${D}${target_datadir}/libtool/config/
28 install -c ${S}/libltdl/config/install-sh ${D}${target_datadir}/libtool/config/
29 install -c ${S}/libltdl/config/missing ${D}${target_datadir}/libtool/config/
30 install -c -m 0644 ${S}/libltdl/config/ltmain.sh ${D}${target_datadir}/libtool/config/
31 install -c -m 0644 ${S}/libltdl/m4/*.m4 ${D}${target_datadir}/aclocal/
32}
33
34SYSROOT_PREPROCESS_FUNCS += "libtoolcross_sysroot_preprocess"
35
36libtoolcross_sysroot_preprocess () {
37 sysroot_stage_dir ${D}${bindir_crossscripts} ${SYSROOT_DESTDIR}${bindir_crossscripts}
38 sysroot_stage_dir ${D}${target_datadir} ${SYSROOT_DESTDIR}${target_datadir}
39}
40
41SSTATE_SCAN_FILES += "libtoolize *-libtool"
42
43export CONFIG_SHELL="/bin/bash"