aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mongodb.rb
diff options
context:
space:
mode:
authorMisty De Meo2013-10-14 14:06:16 -0700
committerMisty De Meo2013-10-14 14:06:34 -0700
commitc070be6e1ff245bd4f4f93510e239586ae7c1660 (patch)
treeb3001be15e779b70dfdb1764bfccb30b494f716b /Library/Formula/mongodb.rb
parentc2101deb037b3a90ea667e75286bf88f42612fa8 (diff)
downloadhomebrew-c070be6e1ff245bd4f4f93510e239586ae7c1660.tar.bz2
mongodb: force libstdc++ in clang
Fixes #22771.
Diffstat (limited to 'Library/Formula/mongodb.rb')
-rw-r--r--Library/Formula/mongodb.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/mongodb.rb b/Library/Formula/mongodb.rb
index 835cd56af..70be86491 100644
--- a/Library/Formula/mongodb.rb
+++ b/Library/Formula/mongodb.rb
@@ -28,6 +28,12 @@ class Mongodb < Formula
depends_on 'openssl' => :optional
def install
+ # mongodb currently doesn't support building against libc++
+ # This will be fixed in the 2.6 release, but meanwhile it must
+ # be built against libstdc++
+ # See: https://github.com/mxcl/homebrew/issues/22771
+ ENV.append 'CXXFLAGS', '-stdlib=libstdc++' if ENV.compiler == :clang
+
args = ["--prefix=#{prefix}", "-j#{ENV.make_jobs}"]
args << '--64' if MacOS.prefer_64_bit?