I have a requirement of building the boost boost_1_59_0 librabry with /md option instead of /mt.
could anybody here help me. I see there is one file build.jam where /mt is used at many places but not sure replacing /mt with /md in this file will fulfill my requirement.
/MT: b2 runtime-link=static
/MD: b2 runtime-link=shared <= The default value
You can also build all libraries, as Grigoriy suggested. In this case, the output filenames will be different. For example:
/MT: libboost_regex-vc141-mt-s-1_65.lib
/MD: libboost_regex-vc141-mt-1_65.lib
You can run b2 with the option --build-type=complete
. It should build all supported variants of the libraries
OR
you can use something like this: b2 variant=release,debug link=static
to build just the static version of the required library.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With