]> code.ossystems Code Review - openembedded-core.git/commitdiff
boost: delete the build directory before rebuilding
authorRoss Burton <ross.burton@intel.com>
Tue, 19 Apr 2016 16:07:59 +0000 (17:07 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 29 Apr 2016 06:34:10 +0000 (07:34 +0100)
If there is an existing build directory when do enter do_compile() then delete
it, as it contains the previous build.  If the rebuild was caused because
dependencies have changed we want to ensure that a rebuild actually happens.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-support/boost/boost.inc

index 982446c06836d5036dfa1b9fb3fa7b65707c5b92..92c7bcb215e557f3feb6f0f873500e8b070ef520 100644 (file)
@@ -169,6 +169,7 @@ addtask do_boostconfig after do_patch before do_configure
 
 do_compile() {
        set -ex
+       rm -rf ${S}/${TARGET_SYS}
        bjam ${BJAM_OPTS} --prefix=${prefix} \
                --exec-prefix=${exec_prefix} \
                --libdir=${libdir} \