diff options
Diffstat (limited to 'meta/recipes-devtools/libtool/libtool_2.4.bb')
| -rw-r--r-- | meta/recipes-devtools/libtool/libtool_2.4.bb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/libtool/libtool_2.4.bb b/meta/recipes-devtools/libtool/libtool_2.4.bb new file mode 100644 index 0000000000..cca3b1ea4a --- /dev/null +++ b/meta/recipes-devtools/libtool/libtool_2.4.bb | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | require libtool.inc | ||
| 2 | DEPENDS = "libtool-native" | ||
| 3 | |||
| 4 | PR = "r0" | ||
| 5 | |||
| 6 | PACKAGES =+ "libltdl libltdl-dev libltdl-dbg" | ||
| 7 | FILES_${PN} += "${datadir}/aclocal*" | ||
| 8 | FILES_libltdl = "${libdir}/libltdl.so.*" | ||
| 9 | FILES_libltdl-dev = "${libdir}/libltdl.* ${includedir}/ltdl.h" | ||
| 10 | FILES_libltdl-dbg = "${libdir}/.debug/" | ||
| 11 | |||
| 12 | inherit autotools | ||
| 13 | |||
| 14 | EXTRA_AUTORECONF = "--exclude=libtoolize" | ||
| 15 | |||
| 16 | do_compile_prepend () { | ||
| 17 | # Sometimes this file doesn't get rebuilt, force the issue | ||
| 18 | rm -f ${S}/libltdl/config/ltmain.sh | ||
| 19 | make libltdl/config/ltmain.sh | ||
| 20 | } | ||
| 21 | |||
| 22 | # | ||
| 23 | # We want the results of libtool-cross preserved - don't stage anything ourselves. | ||
| 24 | # | ||
| 25 | SYSROOT_PREPROCESS_FUNCS += "libtool_sysroot_preprocess" | ||
| 26 | |||
| 27 | libtool_sysroot_preprocess () { | ||
| 28 | if [ "${PN}" == "libtool" ]; then | ||
| 29 | rm -rf ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${bindir}/* | ||
| 30 | rm -rf ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${datadir}/aclocal/* | ||
| 31 | rm -rf ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${datadir}/libtool/config/* | ||
| 32 | fi | ||
| 33 | } | ||
