Boost logo

Boost :

Subject: [boost] [config] BOOST_HAS_THREADS with libstdc++
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-09-29 14:04:18


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It looks like the gcc bug (pr 11953) that inspired the workaround in
boost/config/stdlib/libstdcpp3.hpp that goes:

#ifdef __GLIBCXX__ // gcc 3.4 and greater:
# if defined(_GLIBCXX_HAVE_GTHR_DEFAULT) \
        || defined(_GLIBCXX__PTHREADS)
      //
      // If the std lib has thread support turned on, then turn it on in Boost
      // as well. We do this because some gcc-3.4 std lib headers define
_REENTANT
      // while others do not...
      //
# define BOOST_HAS_THREADS

was fixed for mainstream gcc 4.1.2 and later versions in December of 2006. So
can we change the first line to something like:

#ifdef __GLIBCXX__ && __GLIBCXX__<20070101

so detection of whether gcc is in multi-threaded mode or not works again?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFI4Rim5vihyNWuA4URAs/NAJ45aP24OAUerZUaV48Y1faYt0GsSACeOoJi
eiWSbyfmjW8653luxIe0U/s=
=HySJ
-----END PGP SIGNATURE-----


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk