diff options
Diffstat (limited to 'meta/recipes-support/boost')
-rw-r--r-- | meta/recipes-support/boost/boost.inc | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc index 92c7bcb215..5696b6adb6 100644 --- a/meta/recipes-support/boost/boost.inc +++ b/meta/recipes-support/boost/boost.inc | |||
@@ -142,7 +142,7 @@ def get_boost_parallel_make(d): | |||
142 | BOOST_PARALLEL_MAKE = "${@get_boost_parallel_make(d)}" | 142 | BOOST_PARALLEL_MAKE = "${@get_boost_parallel_make(d)}" |
143 | BJAM_OPTS = '${BOOST_PARALLEL_MAKE} -d+2 -q \ | 143 | BJAM_OPTS = '${BOOST_PARALLEL_MAKE} -d+2 -q \ |
144 | ${BJAM_TOOLS} \ | 144 | ${BJAM_TOOLS} \ |
145 | -sBOOST_BUILD_USER_CONFIG=${S}/tools/build/example/user-config.jam \ | 145 | -sBOOST_BUILD_USER_CONFIG=${WORKDIR}/user-config.jam \ |
146 | --build-dir=${S}/${TARGET_SYS} \ | 146 | --build-dir=${S}/${TARGET_SYS} \ |
147 | --disable-icu \ | 147 | --disable-icu \ |
148 | ${BJAM_EXTRA}' | 148 | ${BJAM_EXTRA}' |
@@ -150,23 +150,19 @@ BJAM_OPTS = '${BOOST_PARALLEL_MAKE} -d+2 -q \ | |||
150 | # Native compilation of bzip2 isn't working | 150 | # Native compilation of bzip2 isn't working |
151 | BJAM_OPTS_append_class-native = ' -sNO_BZIP2=1' | 151 | BJAM_OPTS_append_class-native = ' -sNO_BZIP2=1' |
152 | 152 | ||
153 | do_boostconfig() { | 153 | do_configure() { |
154 | cp -f boost/config/platform/linux.hpp boost/config/platform/linux-gnueabi.hpp | 154 | cp -f ${S}/boost/config/platform/linux.hpp ${S}/boost/config/platform/linux-gnueabi.hpp |
155 | 155 | ||
156 | # D2194:Fixing the failure of "error: duplicate initialization of gcc with the following parameters" during compilation. | 156 | # D2194:Fixing the failure of "error: duplicate initialization of gcc with the following parameters" during compilation. |
157 | sed -i "/^using gcc : 4.3.1/d" ${S}/tools/build/example/user-config.jam | 157 | rm -f ${WORKDIR}/user-config.jam |
158 | sed -i "/^using python : ${PYTHON_BASEVERSION}"/d ${S}/tools/build/example/user-config.jam | 158 | echo 'using gcc : 4.3.1 : ${CXX} : <cflags>"${CFLAGS}" <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ;' >> ${WORKDIR}/user-config.jam |
159 | echo 'using gcc : 4.3.1 : ${CXX} : <cflags>"${CFLAGS}" <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ;' >> ${S}/tools/build/example/user-config.jam | 159 | echo "using python : ${PYTHON_BASEVERSION} : : ${STAGING_INCDIR}/python${PYTHON_BASEVERSION} ;" >> ${WORKDIR}/user-config.jam |
160 | echo "using python : ${PYTHON_BASEVERSION} : : ${STAGING_INCDIR}/python${PYTHON_BASEVERSION} ;" >> ${S}/tools/build/example/user-config.jam | 160 | echo "using python : 3.5 : : ${STAGING_INCDIR}/python3.5m ;" >> ${WORKDIR}/user-config.jam |
161 | echo "using python : 3.5 : : ${STAGING_INCDIR}/python3.5m ;" >> ${S}/tools/build/example/user-config.jam | ||
162 | 161 | ||
163 | CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" ./bootstrap.sh --with-bjam=bjam --with-toolset=gcc --with-python-root=${PYTHON_ROOT} | 162 | CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" ./bootstrap.sh --with-bjam=bjam --with-toolset=gcc --with-python-root=${PYTHON_ROOT} |
164 | sed -i '/^using python/d' project-config.jam | 163 | sed -i '/^using python/d' ${S}/project-config.jam |
165 | } | 164 | } |
166 | 165 | ||
167 | do_boostconfig[dirs] = "${S}" | ||
168 | addtask do_boostconfig after do_patch before do_configure | ||
169 | |||
170 | do_compile() { | 166 | do_compile() { |
171 | set -ex | 167 | set -ex |
172 | rm -rf ${S}/${TARGET_SYS} | 168 | rm -rf ${S}/${TARGET_SYS} |