summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/boost/boost.inc
diff options
context:
space:
mode:
authorMike Crowe <mac@mcrowe.com>2014-03-13 10:01:54 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-17 14:01:42 +0000
commit5760485c6f9797c8c046d5eed4924ff792226269 (patch)
treefda7017651b0d988bd39ccf1be2c019cbc53ddb3 /meta/recipes-support/boost/boost.inc
parent888447cd0cf1fbbcdde0c58d470e43aea943581c (diff)
downloadpoky-5760485c6f9797c8c046d5eed4924ff792226269.tar.gz
boost: Pass CFLAGS, CXXFLAGS and LDFLAGS correctly into boost.build
The compileflags and linkflags do_boostconfig puts into user-config.jam are having no effect. According to http://www.boost.org/boost-build2/doc/html/bbv2/reference/tools.html the correct syntax would be <compileflags>"the flags" <linkflags>"the flags". Since the flags specified were having no effect they can't be necessary and can be safely removed. We should be passing ${CFLAGS}, ${CXXFLAGS} and ${LDFLAGS} instead so that users of the recipe can pass arbitrary flags as they choose. (From OE-Core rev: f09d2583894be0a4069600381046bec5e7f0277b) Signed-off-by: Mike Crowe <mac@mcrowe.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/boost/boost.inc')
-rw-r--r--meta/recipes-support/boost/boost.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
index c7642befa4..356ca22f4a 100644
--- a/meta/recipes-support/boost/boost.inc
+++ b/meta/recipes-support/boost/boost.inc
@@ -134,7 +134,7 @@ do_boostconfig() {
134 # D2194:Fixing the failure of "error: duplicate initialization of gcc with the following parameters" during compilation. 134 # D2194:Fixing the failure of "error: duplicate initialization of gcc with the following parameters" during compilation.
135 if ! grep -qe "^using gcc : 4.3.1" ${S}/tools/build/v2/user-config.jam 135 if ! grep -qe "^using gcc : 4.3.1" ${S}/tools/build/v2/user-config.jam
136 then 136 then
137 echo 'using gcc : 4.3.1 : ${CXX} : compileflags -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;' >> ${S}/tools/build/v2/user-config.jam 137 echo 'using gcc : 4.3.1 : ${CXX} : <cflags>"${CFLAGS}" <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ;' >> ${S}/tools/build/v2/user-config.jam
138 fi 138 fi
139 139
140 echo "using python : ${PYTHON_BASEVERSION} : : ${STAGING_INCDIR}/python${PYTHON_BASEVERSION} ;" >> ${S}/tools/build/v2/user-config.jam 140 echo "using python : ${PYTHON_BASEVERSION} : : ${STAGING_INCDIR}/python${PYTHON_BASEVERSION} ;" >> ${S}/tools/build/v2/user-config.jam