From 38de259db85f43008db4bd2133791ee81f29a01c Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Sun, 28 Apr 2013 02:14:16 +0200 Subject: [PATCH] qtjsbackend-native: Use separate build directory Signed-off-by: Martin Jansa --- recipes-qt/qt5/qtjsbackend-native.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/recipes-qt/qt5/qtjsbackend-native.inc b/recipes-qt/qt5/qtjsbackend-native.inc index ea5bd86d08..25de8e60ea 100644 --- a/recipes-qt/qt5/qtjsbackend-native.inc +++ b/recipes-qt/qt5/qtjsbackend-native.inc @@ -17,7 +17,16 @@ SRC_URI += "\ # parts of the source tree with out the 'mkv8snapshot' tool if it is enabled and that will fail #PARALLEL_MAKE = "" +SEPB = "${WORKDIR}/build" +B = "${SEPB}" + do_configure() { + # Similar logic is in autotools.bbclass + if [ -d ${B} -a "${S}" != "${B}" ] ; then + # Existing separate build directory, exists, remove + rm -rf "${B}/*" + fi + # Avoid setting QMAKE_LINK from LD (since we want the linker to be g++) unset LD