From a1abb63f0b7a629a5d8a0033d639078bc0a6d15c Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Thu, 4 Dec 2014 14:17:08 +0000 Subject: 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 Signed-off-by: Richard Purdie --- meta/classes/autotools.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta') diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index bed8a835d4..ca04e7976e 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass @@ -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 -- cgit v1.2.3-54-g00ecf