aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@theqtcompany.com>2016-03-11 15:48:10 +0200
committerSamuli Piippo <samuli.piippo@theqtcompany.com>2016-04-08 12:51:05 +0000
commitaa4ebe4fd114bcc14b7028c9d50bc7f6c5510af5 (patch)
treef96d7a08f1cc93edf917fe6c96b9edbc45bb9a1a /classes
parent87e2747f0f3cd19a637314a85c9d3650bf2d9b46 (diff)
Backport remove-libtool.bbclass from oe
Used by meta-qt5, but available only in oe/master Change-Id: I60a8f3436a8089f0b8a1b445867d901f3a8dbf70 Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/remove-libtool.bbclass11
1 files changed, 11 insertions, 0 deletions
diff --git a/classes/remove-libtool.bbclass b/classes/remove-libtool.bbclass
new file mode 100644
index 00000000..0d7bd214
--- /dev/null
+++ b/classes/remove-libtool.bbclass
@@ -0,0 +1,11 @@
+# This class removes libtool .la files after do_install
+
+REMOVE_LIBTOOL_LA ?= "1"
+
+remove_libtool_la() {
+ if [ "${REMOVE_LIBTOOL_LA}" != "0" ]; then
+ find "${D}" -ignore_readdir_race -name "*.la" -delete
+ fi
+}
+
+do_install[postfuncs] += "remove_libtool_la"