According to the Jamroot file if
i'm to exclude some libraries from building Boost I should use --without-<library>
when invoking bjam. However it looks like I'm doing something wrong as it seems
that the libraries I asked bjam to skip are being built. Below is what I
understood I should use if I wanted to exclude the Boost.Thread library:
smclemo@edin-angus
/usr/src/boost_1_39_0
$ bjam link=static toolset=bfin target-os=elf
--without-thread threading=single runtime-link=static stage
And below is a snippet from my build output indicating that
we've attempted to build Boost.Thread:
...failed bfin.compile.c++
bin.v2\libs\thread\build\bfin-8.0.7.1\release\link-static\runtime-link-static\target-os-elf\threading-multi\win32\thread.doj...
bfin.compile.c++
bin.v2\libs\thread\build\bfin-8.0.7.1\release\link-static\runtime-link-static\target-os-elf\threading-multi\win32\exceptions.doj
".\boost/config/requires_threads.hpp",
line 94: cc0035: catastrophic error:
#error directive: "Compiler threading support is not turned on.
Please consult your compiler's documentation for the appropriate
options to use"
# error
"Compiler threading support is not turned on. Please consult your
compiler's documentation for the appropriate options to use"
^
1 catastrophic error
detected in the compilation of
"libs\thread\src\win32\exceptions.cpp".
Compilation terminated.
cc3089: fatal error:
Compilation failed
I'm guessing that I'm not using the correct switch, perhaps
--without-Thread or --without-threads or something else is correct?
- Sean