diff options
| -rw-r--r-- | meta/classes/remove-libtool.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/remove-libtool.bbclass b/meta/classes/remove-libtool.bbclass new file mode 100644 index 0000000000..3fd0cd58f9 --- /dev/null +++ b/meta/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" | ||
