Re: [Boost-bugs] [Boost C++ Libraries] #6165: BOOST_ENABLE_THREADS/BOOST_DISABLE_THREADS wrongly configured on GCC 4.7

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6165: BOOST_ENABLE_THREADS/BOOST_DISABLE_THREADS wrongly configured on GCC 4.7
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-01-17 13:14:46


#6165: BOOST_ENABLE_THREADS/BOOST_DISABLE_THREADS wrongly configured on GCC 4.7
--------------------------------------------+-------------------------------
  Reporter: Ai Azuma <ai.azuma@…> | Owner: johnmaddock
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: config
   Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------------+-------------------------------

Comment (by anonymous):

>gcc defines _MT if -mthreads is given on the command line (and that is
 the only difference).

 I'm not convinced that's the right thing to check - ideally what we want
 to know is "what configure options was libstdc++ compiled with?", and then
 set BOOST_HAS_THREADS uniformly based on that.

 Can someone please grep the headers for _GLIBCXX_HAS_GTHREADS: there
 should be a preprocessor based switch statement somewhere that selects
 which threading behaviour to use, and that's what we need to hook into.

 Thanks, John.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6165#comment:8>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC