libtool-sdk: add recipe for 2.4
authorKoen Kooi <koen@openembedded.org>
Mon, 11 Oct 2010 13:05:49 +0000 (15:05 +0200)
committerKoen Kooi <koen@openembedded.org>
Mon, 11 Oct 2010 13:05:49 +0000 (15:05 +0200)
Without this pkgconfig-sdk fails to build as part of meta-toolchain when using libtool 2.4

recipes/libtool/libtool-sdk_2.4.bb [new file with mode: 0644]

diff --git a/recipes/libtool/libtool-sdk_2.4.bb b/recipes/libtool/libtool-sdk_2.4.bb
new file mode 100644 (file)
index 0000000..f1859ca
--- /dev/null
@@ -0,0 +1,21 @@
+require libtool_${PV}.bb
+
+SRC_URI_append = " file://prefix.patch \
+                   file://cross.patch \
+                 "
+inherit sdk
+
+do_configure_prepend () {
+        # Remove any existing libtool m4 since old stale versions would break
+        # any upgrade
+        rm -f ${STAGING_DATADIR}/aclocal/libtool.m4
+        rm -f ${STAGING_DATADIR}/aclocal/lt*.m4
+}
+
+do_install () {
+        autotools_do_install
+        install -d ${D}${bindir}/
+        install -m 0755 ${HOST_SYS}-libtool ${D}${bindir}/
+}
+
+NATIVE_INSTALL_WORKS = "1"