aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisty De Meo2014-01-22 13:49:11 -0800
committerMisty De Meo2014-01-22 13:52:19 -0800
commitc88a1856b184838212167ac1cb9f03f15502db6a (patch)
tree89ea2a6bfba2e5d991d5f509db967db9d3ea39d9
parente253d34cbeeb39a7db5194c9c38feebd283e9f99 (diff)
downloadhomebrew-c88a1856b184838212167ac1cb9f03f15502db6a.tar.bz2
regex-opt: use libstdc++
Fixes #26104.
-rw-r--r--Library/Formula/regex-opt.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/regex-opt.rb b/Library/Formula/regex-opt.rb
index ac1f75448..8b12a801b 100644
--- a/Library/Formula/regex-opt.rb
+++ b/Library/Formula/regex-opt.rb
@@ -6,6 +6,11 @@ class RegexOpt < Formula
sha1 'a3b58af5a173a9b77ede7d0cb01831ae7a315b38'
def install
+ # regex-opt uses _Find_first() in std::bitset, which is a
+ # nonstandard extension supported in libstdc++ but not libc++
+ # See: http://lists.w3.org/Archives/Public/www-archive/2006Jan/0002.html
+ ENV.libstdcxx if ENV.compiler == :clang
+
system "make", "CC=#{ENV.cc}", "CXX=#{ENV.cxx}"
bin.install 'regex-opt'
end