I'm a bit confused about whether to link against the libboot_*-mt variants or not and what they're actually used for.
I'm using a custom backport of boost 1.46.0 on Centos 6. The build produces /usr/lib64/libboost_thread-mt.so.7 as well as -mt and standard versions of the other libraries.
I've written a unit test program which uses a thread to store a calculation in a boost::future. To link that test I had to add -lboost_thread-mt. But I did not need to change the other boost -l args to use the -mt versions.
I've read the Library Naming section on the boost site but it's not clear to me what "indicates that the library was built with multithreading support enabled. Libraries built without multithreading support can be identified by the absence of -mt" actually means.
Do i need to switch to the multithreading-aware versions of the other libraries if I link with -lboost_thread-mt? If not, when do I need to link against the -mt variants?
Is there a recommendation for selectively linking against the -mt variants only if they're needed? This project uses GNU Make for builds.
Is there a performance or functional penalty for always linking against the -mt variants?