1
1
#! /bin/sh
2
- # Copyright 2019-2020 Rene Rivera
2
+ # Copyright 2019-2021 René Ferdinand Rivera Morell
3
3
# Copyright (C) 2005, 2006 Douglas Gregor.
4
4
# Copyright (C) 2006 The Trustees of Indiana University
5
5
#
142
142
143
143
if test " x$want_help " = xyes; then
144
144
cat << EOF
145
- \` ./bootstrap.sh' prepares Boost for building on a few kinds of systems.
145
+ \` ./bootstrap.sh\' builds the Boost build system B2 and prepares Boost for
146
+ building. This includes setting defaults in the project-config.jam which you
147
+ can adjust prior to invoking B2.
146
148
147
149
Usage: $0 [OPTION]...
148
150
@@ -152,7 +154,8 @@ Configuration:
152
154
-h, --help display this help and exit
153
155
--with-bjam=BJAM use existing Boost.Jam executable (bjam)
154
156
[automatically built]
155
- --with-toolset=TOOLSET use specific B2 toolset
157
+ --with-toolset=TOOLSET use specific TOOLSET to build B2 and as default
158
+ for building Boost
156
159
[automatically detected]
157
160
--show-libraries show the set of libraries that require build
158
161
and installation steps (i.e., those libraries
@@ -193,7 +196,7 @@ my_dir=$(dirname "$0")
193
196
194
197
# Determine the toolset, if not already decided
195
198
if test " x$TOOLSET " = x; then
196
- guessed_toolset=` $my_dir /tools/build/src/engine/build.sh --guess-toolset`
199
+ guessed_toolset=` CXX= CXXFLAGS= $my_dir /tools/build/src/engine/build.sh --guess-toolset`
197
200
case $guessed_toolset in
198
201
acc | clang | gcc | como | mipspro | pathscale | pgi | qcc | vacpp )
199
202
TOOLSET=$guessed_toolset
@@ -223,7 +226,7 @@ rm -f config.log
223
226
if test " x$BJAM " = x; then
224
227
$ECHO " Building B2 engine.."
225
228
pwd=` pwd`
226
- (cd " $my_dir /tools/build/src/engine" && . /build.sh)
229
+ CXX= CXXFLAGS= " $my_dir /tools/build/src/engine/build.sh" ${TOOLSET}
227
230
if [ $? -ne 0 ]; then
228
231
echo
229
232
echo " Failed to build B2 build engine"
@@ -400,7 +403,10 @@ To generate header files, run:
400
403
401
404
./b2 headers
402
405
403
- To adjust configuration, edit 'project-config.jam'.
406
+ The configuration generated uses ${TOOLSET} to build by default. If that is
407
+ unintended either use the --with-toolset option or adjust configuration, by
408
+ editing 'project-config.jam'.
409
+
404
410
Further information:
405
411
406
412
- Command line help:
0 commit comments