BJam not compiling boost libraries with '-mt' tag when multi threading specified
Asked Answered
P

1

8

I'm trying to compile boost v1.55 libraries for osx, with multi threading support. My user-config.jam configures the compiler as follows:

using clang : osx
: xcrun clang -arch i386 -arch x86_64 -stdlib=libstdc++ -mmacosx-version-min=10.9
;

And the command I run to build the libraries is as follows:

./b2 -a -j8 toolset=clang-osx link=static threading=multi --with-thread

However, the libraries generated are of the following format: libboost_.a, rather than libboost_-mt.a

Does anyone have any idea of why the '-mt' tag is omitted?

Premiere answered 16/12, 2013 at 18:7 Comment(0)
P
17

In order to enable the formatting I requested (where tags are added to the library name to indicate the configuration the library was compiled in), the appropriate layout parameter needs to be set in the build options. My build command should have looked like this:

./b2 -a -j8 toolset=clang-osx link=static threading=multi --layout=tagged --with-thread
Premiere answered 16/12, 2013 at 18:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.