xref: /OK3568_Linux_fs/yocto/poky/meta/classes/remove-libtool.bbclass (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# This class removes libtool .la files after do_install
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunREMOVE_LIBTOOL_LA ?= "1"
4*4882a593Smuzhiyun
5*4882a593Smuzhiyunremove_libtool_la() {
6*4882a593Smuzhiyun	if [ "${REMOVE_LIBTOOL_LA}" != "0" ]; then
7*4882a593Smuzhiyun		find "${D}" -ignore_readdir_race -name "*.la" -delete
8*4882a593Smuzhiyun	fi
9*4882a593Smuzhiyun}
10*4882a593Smuzhiyun
11*4882a593Smuzhiyundo_install[postfuncs] += "remove_libtool_la"
12