diff options
| -rw-r--r-- | Library/Formula/nspr.rb | 1 | ||||
| -rw-r--r-- | Library/Formula/spidermonkey.rb | 7 |
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. |
