diff options
| author | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2016-03-11 15:48:10 +0200 |
|---|---|---|
| committer | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2016-04-08 12:51:05 +0000 |
| commit | aa4ebe4fd114bcc14b7028c9d50bc7f6c5510af5 (patch) | |
| tree | f96d7a08f1cc93edf917fe6c96b9edbc45bb9a1a /classes/remove-libtool.bbclass | |
| parent | 87e2747f0f3cd19a637314a85c9d3650bf2d9b46 (diff) | |
| download | meta-boot2qt-aa4ebe4fd114bcc14b7028c9d50bc7f6c5510af5.tar.gz | |
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/remove-libtool.bbclass')
| -rw-r--r-- | classes/remove-libtool.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/classes/remove-libtool.bbclass b/classes/remove-libtool.bbclass new file mode 100644 index 0000000..0d7bd21 --- /dev/null +++ b/classes/remove-libtool.bbclass | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | # This class removes libtool .la files after do_install | ||
| 2 | |||
| 3 | REMOVE_LIBTOOL_LA ?= "1" | ||
| 4 | |||
| 5 | remove_libtool_la() { | ||
| 6 | if [ "${REMOVE_LIBTOOL_LA}" != "0" ]; then | ||
| 7 | find "${D}" -ignore_readdir_race -name "*.la" -delete | ||
| 8 | fi | ||
| 9 | } | ||
| 10 | |||
| 11 | do_install[postfuncs] += "remove_libtool_la" | ||
