[Libreoffice-commits] .: boost/boost_1_44_0-gthreads.patch boost/makefile.mk

Stephan Bergmann sbergmann at kemper.freedesktop.org
Fri Jul 13 01:58:33 PDT 2012


 boost/boost_1_44_0-gthreads.patch |   12 ++++++++++++
 boost/makefile.mk                 |    4 ++++
 2 files changed, 16 insertions(+)

New commits:
commit 8ecf7e2259681b7a0d26766ea4500a7a6313f56d
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jul 13 10:43:10 2012 +0200

    Backport boost fix for threading detection in GCC 4.7
    
    See http://svn.boost.org/svn/boost/trunk r76133 "Fix threading detection in
    GCC-4.7 experimental."  Without it, BOOST_DISABLE_THREADS would be defined when
    compiling with GCC 4.7, which in turn would cause
    boost/smart_ptr/detail/sp_counted_base.hpp to include a single-thread--mode
    boost/smart_ptr/detaul/sp_counted_base_nt.hpp which is not suitable in a
    multi-threaded scenario.
    
    Change-Id: Ia30a5c2c241e2e135858a5cab3dd855d05db50c8

diff --git a/boost/boost_1_44_0-gthreads.patch b/boost/boost_1_44_0-gthreads.patch
new file mode 100644
index 0000000..d12b599
--- /dev/null
+++ b/boost/boost_1_44_0-gthreads.patch
@@ -0,0 +1,12 @@
+--- misc/boost_1_44_0/boost/config/stdlib/libstdcpp3.hpp	2010-06-11 13:16:34.000000000 +0200
++++ misc/build/boost_1_44_0/boost/config/stdlib/libstdcpp3.hpp	2012-07-13 10:31:58.330127342 +0200
+@@ -31,7 +31,8 @@
+ 
+ #ifdef __GLIBCXX__ // gcc 3.4 and greater:
+ #  if defined(_GLIBCXX_HAVE_GTHR_DEFAULT) \
+-        || defined(_GLIBCXX__PTHREADS)
++        || defined(_GLIBCXX__PTHREADS) \
++        || defined(_GLIBCXX_HAS_GTHREADS)
+       //
+       // 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
diff --git a/boost/makefile.mk b/boost/makefile.mk
index 719a536..e223ddf 100644
--- a/boost/makefile.mk
+++ b/boost/makefile.mk
@@ -80,6 +80,10 @@ PATCH_FILES += boost_1_44_0-gcc4.7.patch
 # Clang warnings:
 PATCH_FILES += boost_1_44_0-clang-warnings.patch
 
+# Backport http://svn.boost.org/svn/boost/trunk r76133 "Fix threading detection
+# in GCC-4.7 experimental":
+PATCH_FILES += boost_1_44_0-gthreads.patch
+
 ADDITIONAL_FILES= \
     libs/thread/src/win32/makefile.mk \
 	libs/date_time/src/gregorian/makefile.mk


More information about the Libreoffice-commits mailing list