diff options
Diffstat (limited to 'meta/recipes-devtools/libtool/libtool-cross_2.5.2.bb')
-rw-r--r-- | meta/recipes-devtools/libtool/libtool-cross_2.5.2.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-devtools/libtool/libtool-cross_2.5.2.bb b/meta/recipes-devtools/libtool/libtool-cross_2.5.2.bb new file mode 100644 index 0000000000..18849cb8ef --- /dev/null +++ b/meta/recipes-devtools/libtool/libtool-cross_2.5.2.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | require libtool-${PV}.inc | ||
2 | |||
3 | PACKAGES = "" | ||
4 | SRC_URI += "file://fixinstall.patch" | ||
5 | |||
6 | datadir = "${STAGING_DIR_TARGET}${target_datadir}" | ||
7 | |||
8 | inherit nopackages | ||
9 | |||
10 | # | ||
11 | # ccache may or may not be INHERITED, we remove references to it so the sstate | ||
12 | # artefact works on a machine where its not present. libtool-cross isn't used | ||
13 | # heavily so any performance issue is minor. | ||
14 | # Find references to LTCC="ccache xxx-gcc" and CC="ccache xxx-gcc" | ||
15 | # | ||
16 | do_install () { | ||
17 | ln -s false ${D} | ||
18 | install -d ${D}${bindir_crossscripts}/ | ||
19 | install -m 0755 libtool ${D}${bindir_crossscripts}/libtool | ||
20 | sed -e 's@^\(predep_objects="\).*@\1"@' \ | ||
21 | -e 's@^\(postdep_objects="\).*@\1"@' \ | ||
22 | -e 's@^CC="ccache.@CC="@' \ | ||
23 | -e 's@^LTCC="ccache.@LTCC="@' \ | ||
24 | -i ${D}${bindir_crossscripts}/libtool | ||
25 | sed -i '/^archive_cmds=/s/\-nostdlib//g' ${D}${bindir_crossscripts}/libtool | ||
26 | sed -i '/^archive_expsym_cmds=/s/\-nostdlib//g' ${D}${bindir_crossscripts}/libtool | ||
27 | GREP='/bin/grep' SED='sed' ${S}/build-aux/inline-source libtoolize > ${D}${bindir_crossscripts}/libtoolize | ||
28 | chmod 0755 ${D}${bindir_crossscripts}/libtoolize | ||
29 | install -d ${D}${target_datadir}/libtool/build-aux/ | ||
30 | install -d ${D}${target_datadir}/aclocal/ | ||
31 | install -c ${S}/build-aux/compile ${D}${target_datadir}/libtool/build-aux/ | ||
32 | install -c ${S}/build-aux/config.guess ${D}${target_datadir}/libtool/build-aux/ | ||
33 | install -c ${S}/build-aux/config.sub ${D}${target_datadir}/libtool/build-aux/ | ||
34 | install -c ${S}/build-aux/depcomp ${D}${target_datadir}/libtool/build-aux/ | ||
35 | install -c ${S}/build-aux/install-sh ${D}${target_datadir}/libtool/build-aux/ | ||
36 | install -c ${S}/build-aux/missing ${D}${target_datadir}/libtool/build-aux/ | ||
37 | install -c -m 0644 ${S}/build-aux/ltmain.sh ${D}${target_datadir}/libtool/build-aux/ | ||
38 | install -c -m 0644 ${S}/m4/*.m4 ${D}${target_datadir}/aclocal/ | ||
39 | } | ||
40 | |||
41 | SYSROOT_DIRS += "${bindir_crossscripts} ${target_datadir}" | ||
42 | |||
43 | SSTATE_SCAN_FILES += "libtoolize *-libtool" | ||