title: boost lib naming are missing
body: <p>I've downloaded boost and built it, and not for the first time, but then things started to seem weird.</p>
  
  <p>At first I got these errors while compiling my project (which uses boost):</p>
  
  <pre><code>/usr/local/include/boost/system/error_code.hpp:221: undefined reference to `boost::system::generic_category()'
  /usr/local/include/boost/system/error_code.hpp:222: undefined reference to `boost::system::generic_category()'
  /usr/local/include/boost/system/error_code.hpp:223: undefined reference to `boost::system::system_category()'
  /usr/local/include/boost/system/error_code.hpp:221: undefined reference to `boost::system::generic_category()'
  /usr/local/include/boost/system/error_code.hpp:222: undefined reference to `boost::system::generic_category()'
  /usr/local/include/boost/system/error_code.hpp:223: undefined reference to `boost::system::system_category()'
  /usr/local/include/boost/thread/exceptions.hpp:51: undefined reference to `boost::system::system_category()'
  /usr/local/include/boost/thread/exceptions.hpp:84: undefined reference to `boost::system::system_category()'
  /usr/local/include/boost/thread/pthread/thread_data.hpp:152: undefined reference to `vtable for boost::detail::thread_data_base'
  /usr/local/include/boost/thread/pthread/thread_data.hpp:195: undefined reference to `boost::detail::get_current_thread_data()'
  /usr/local/include/boost/thread/detail/thread.hpp:179: undefined reference to `boost::thread::start_thread_noexcept()'
  /usr/local/include/boost/thread/detail/thread.hpp:741: undefined reference to `boost::thread::native_handle()'
  /usr/local/include/boost/thread/detail/thread.hpp:767: undefined reference to `boost::thread::join_noexcept()'
  /usr/local/include/boost/thread/detail/thread.hpp:779: undefined reference to `boost::thread::do_try_join_until_noexcept(timespec const&amp;, bool&amp;)'
  /usr/local/include/boost/thread/pthread/condition_variable.hpp:84: undefined reference to `boost::this_thread::interruption_point()'
  /usr/local/include/boost/thread/detail/thread.hpp:90: undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
  /usr/local/include/boost/system/error_code.hpp:221: undefined reference to `boost::system::generic_category()'
  /usr/local/include/boost/system/error_code.hpp:222: undefined reference to `boost::system::generic_category()'
  /usr/local/include/boost/system/error_code.hpp:223: undefined reference to `boost::system::system_category()'
  </code></pre>
  
  <p>So I went to check if everything is in place and found out that the boost lib files I have don't have the usual library naming, that is they just look like: <code>libboost_thread.a</code>, <code>libboost_system.a</code>, <code>libboost_date_time.a</code>, instead of the <code>-mt</code>, <code>-d</code> and so on.</p>
  
  <p>I don't remember how exactly I built it, but if I try to run:<br>
  <code>boost_src_dir &gt; ./b2 threading=multi link=static variant=debug,release</code><br>
  I get:</p>
  
  <pre><code>error: Name clash for '&lt;pstage/lib&gt;libboost_atomic.a'
  error: 
  error: Tried to build the target twice, with property sets having 
  error: these incompatible properties:
  error: 
  error:     -  &lt;debug-symbols&gt;on &lt;inlining&gt;off &lt;optimization&gt;off &lt;runtime-debugging&gt;on &lt;variant&gt;debug
  error:     -  &lt;debug-symbols&gt;off &lt;define&gt;NDEBUG &lt;inlining&gt;full &lt;optimization&gt;speed &lt;runtime-debugging&gt;off &lt;variant&gt;release
  error: 
  error: Please make sure to have consistent requirements for these 
  error: properties everywhere in your project, especially for install
  error: targets.
  </code></pre>
  
  <p>Not quite sure what's going on, the previous times I've done this it went pretty smooth..<br>
  Any ideas?</p>
  
  <p>I'm using linux mint (17.2 x64), boost 1.59 and use it with cmake like so:</p>
  
  <pre><code>set(Boost_USE_STATIC_LIBS ON)
  set(Boost_USE_MULTITHREADED ON)
  find_package(Boost 1.36.0 COMPONENTS system thread shared_ptr)
  if(Boost_FOUND)
      include_directories(${Boost_INCLUDE_DIRS})
      target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES})
  else()
      message("can not find boost")
  endif()
  </code></pre>
  
  <p>Thanks.</p>