aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-11-10 23:56:31 -0600
committerJack Nagel2013-11-10 23:56:51 -0600
commit0ddc2e2583fc26691e26d20af3ba05a3ee31dd73 (patch)
treeec22e3b5bf02c2696f98c3e03e07a8ef60749c66
parent25143d23ccfd6063aa15e5efd0fd36c84dbc7f2c (diff)
downloadhomebrew-0ddc2e2583fc26691e26d20af3ba05a3ee31dd73.tar.bz2
spidermonkey: enable superenv
-rw-r--r--Library/Formula/nspr.rb1
-rw-r--r--Library/Formula/spidermonkey.rb7
2 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/nspr.rb b/Library/Formula/nspr.rb
index 7a29baa7f..5ba99f0bb 100644
--- a/Library/Formula/nspr.rb
+++ b/Library/Formula/nspr.rb
@@ -19,6 +19,7 @@ class Nspr < Formula
--enable-strip
--enable-pthreads
--enable-ipv6
+ --enable-macos-target=#{MacOS.version}
]
args << "--enable-64bit" if MacOS.prefer_64_bit?
system "./configure", *args
diff --git a/Library/Formula/spidermonkey.rb b/Library/Formula/spidermonkey.rb
index 9e17426e3..664084854 100644
--- a/Library/Formula/spidermonkey.rb
+++ b/Library/Formula/spidermonkey.rb
@@ -13,10 +13,6 @@ class Spidermonkey < Formula
depends_on 'readline'
depends_on 'nspr'
- # spidermonkey builds using libstdc++ with clang in superenv
- # TODO fix this under superenv
- env :std
-
def install
# aparently this flag causes the build to fail for ivanvc on 10.5 with a
# penryn (core 2 duo) CPU. So lets be cautious here and remove it.
@@ -33,7 +29,8 @@ class Spidermonkey < Formula
system "../js/src/configure", "--prefix=#{prefix}",
"--enable-readline",
"--enable-threadsafe",
- "--with-system-nspr"
+ "--with-system-nspr",
+ "--enable-macos-target=#{MacOS.version}"
inreplace "js-config", /JS_CONFIG_LIBS=.*?$/, "JS_CONFIG_LIBS=''"
# These need to be in separate steps.