summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVenkata ramana gollamudi <ramana.gollamudi@huawei.com>2012-04-13 11:42:46 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-13 16:04:11 +0100
commit396da97103bb1a81e3052b3caad1f2c564f09ea4 (patch)
treed510533158bd1a0e068c9edd89752c8cb575bf62
parent60cf19a36daffe565f85ec6cccf6fc63e552a99b (diff)
downloadpoky-396da97103bb1a81e3052b3caad1f2c564f09ea4.tar.gz
boost: fix re-execution of task
After building boost package, re-execution of boostconfig task followed by re-execution of compile task is giving following error "error: duplicate initialization of gcc with the following parameters" during compilation It is because multiple entries of gcc are being added during boostconfig re-execution there by failing the compilation. The patch fixes adding multiple "Using gcc" entries into /tools/build/v2/user-config.jam [Yocto #2194] (From OE-Core rev: 291e20a51544c640d07767d1dc32d762f4370f41) Signed-off-by: Venkata Ramana Gollamudi <ramana.gollamudi@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/boost/boost.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
index d70a7e2c5a..c9306df94f 100644
--- a/meta/recipes-support/boost/boost.inc
+++ b/meta/recipes-support/boost/boost.inc
@@ -135,7 +135,11 @@ BJAM_OPTS = '${BJAM_TOOLS} \
135do_boostconfig() { 135do_boostconfig() {
136 cp -f boost/config/platform/linux.hpp boost/config/platform/linux-gnueabi.hpp 136 cp -f boost/config/platform/linux.hpp boost/config/platform/linux-gnueabi.hpp
137 137
138 echo 'using gcc : 4.3.1 : ${CXX} : compileflags -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;' >> ${S}/tools/build/v2/user-config.jam 138 # D2194:Fixing the failure of "error: duplicate initialization of gcc with the following parameters" during compilation.
139 if ! grep -qe "^using gcc : 4.3.1" ${S}/tools/build/v2/user-config.jam
140 then
141 echo 'using gcc : 4.3.1 : ${CXX} : compileflags -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;' >> ${S}/tools/build/v2/user-config.jam
142 fi
139} 143}
140 144
141addtask do_boostconfig after do_patch before do_configure 145addtask do_boostconfig after do_patch before do_configure