summaryrefslogtreecommitdiffstats
path: root/meta/classes/remove-libtool.bbclass
blob: ef79151aa9102c4cf7e6f84b076d16742d542d45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#
# Copyright OpenEmbedded Contributors
#

# 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"