diff options
Diffstat (limited to 'yocto-poky/meta/classes/remove-libtool.bbclass')
-rw-r--r-- | yocto-poky/meta/classes/remove-libtool.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/yocto-poky/meta/classes/remove-libtool.bbclass b/yocto-poky/meta/classes/remove-libtool.bbclass new file mode 100644 index 000000000..3fd0cd58f --- /dev/null +++ b/yocto-poky/meta/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" |