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

Signed-off-by: Ross Burton <[email protected]>
---
 meta/classes/autotools.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index bed8a83..ca04e79 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
-- 
1.7.10.4

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to