autotools.bbclass: respect CLEANBROKEN

autotools.bbclass should respect CLEANBROKEN as it invokes 'make clean' on
configure.

(From OE-Core rev: ffbcb440c43e5e00e73ced67a2c888e9863a1d00)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2014-12-04 14:17:08 +00:00
committed by Richard Purdie
parent 55db8777c2
commit a1abb63f0b

View File

@@ -110,7 +110,7 @@ autotools_preconfigure() {
# At least remove the .la files since automake won't automatically
# regenerate them even if CFLAGS/LDFLAGS are different
cd ${S}
if [ -e Makefile -o -e makefile -o -e GNUmakefile ]; then
if [ "${CLEANBROKEN}" != "1" -a \( -e Makefile -o -e makefile -o -e GNUmakefile \) ]; then
${MAKE} clean
fi
find ${S} -name \*.la -delete