Skip to content

Instantly share code, notes, and snippets.

@dplummer
Created June 12, 2012 16:58
Show Gist options
  • Save dplummer/2918699 to your computer and use it in GitHub Desktop.
Save dplummer/2918699 to your computer and use it in GitHub Desktop.
passenger BOOST patch for gcc 4.7
# From https://svn.boost.org/trac/boost/ticket/6165
# Attempting to run passenger-install-nginx-module on a system with
# GCC 4.7 (like archlinux) will halt with BOOST thread errors.
# Update the file in ~/.rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/ext/boost/config/stdlib/libstdcpp3.hpp
Index: boost/config/stdlib/libstdcpp3.hpp
===================================================================
--- boost/config/stdlib/libstdcpp3.hpp (revision 75635)
+++ boost/config/stdlib/libstdcpp3.hpp (working copy)
@@ -33,7 +33,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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment