[mingw32-boost] mingw32 gcc4.7 thread detection fix

sailer sailer at fedoraproject.org
Sat Jan 14 19:55:01 UTC 2012


commit 4bda23c5d5bb275d46a5ef2b137501405283926e
Author: Thomas Sailer <t.sailer at alumni.ethz.ch>
Date:   Sat Jan 14 20:24:33 2012 +0100

    mingw32 gcc4.7 thread detection fix

 boost-1.48.0-gcc47-winthreads.patch |   14 ++++++++++++++
 mingw32-boost.spec                  |    2 ++
 2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/boost-1.48.0-gcc47-winthreads.patch b/boost-1.48.0-gcc47-winthreads.patch
new file mode 100644
index 0000000..8446b95
--- /dev/null
+++ b/boost-1.48.0-gcc47-winthreads.patch
@@ -0,0 +1,14 @@
+Index: boost/config/stdlib/libstdcpp3.hpp
+===================================================================
+--- boost/config/stdlib/libstdcpp3.hpp.orig     2012-01-14 19:15:34.957877838 +0100
++++ boost/config/stdlib/libstdcpp3.hpp  2012-01-14 19:19:09.660901373 +0100
+@@ -34,7 +34,8 @@
+ #ifdef __GLIBCXX__ // gcc 3.4 and greater:
+ #  if defined(_GLIBCXX_HAVE_GTHR_DEFAULT) \
+         || defined(_GLIBCXX__PTHREADS) \
+-        || defined(_GLIBCXX_HAS_GTHREADS)
++        || defined(_GLIBCXX_HAS_GTHREADS) \
++        || defined(_WIN32)
+       //
+       // 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/mingw32-boost.spec b/mingw32-boost.spec
index 884d8d2..26097b8 100644
--- a/mingw32-boost.spec
+++ b/mingw32-boost.spec
@@ -63,6 +63,7 @@ Patch7:         boost-1.48.0-foreach.patch
 Patch8:         boost-1.48.0-gcc47-pthreads.patch
 
 Patch9:         boost-1.48.0-mingw32.patch
+Patch10:        boost-1.48.0-gcc47-winthreads.patch
 
 BuildArch:      noarch
 
@@ -118,6 +119,7 @@ sed 's/_FEDORA_SONAME/%{sonamever}/' %{PATCH1} | %{__patch} -p0 --fuzz=0
 %patch7 -p2
 %patch8 -p0
 %patch9 -p0 -b .mingw32
+%patch10 -p0 -b .gcc47wt
 
 %build
 # Support for building tests.


More information about the scm-commits mailing list