aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/spidermonkey.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2011-04-08 11:16:37 -0700
committerAdam Vandenberg2011-04-09 09:36:30 -0700
commitb782d9da90d561638d9697a98d99faaa61b64453 (patch)
tree402c7460717df2d37ce48c61960b121fb74941a5 /Library/Formula/spidermonkey.rb
parentb5b6da2c6c27b9784808329c2c9b45f1976647a9 (diff)
downloadhomebrew-b782d9da90d561638d9697a98d99faaa61b64453.tar.bz2
Normalize use of MACOS_VERSION
Diffstat (limited to 'Library/Formula/spidermonkey.rb')
-rw-r--r--Library/Formula/spidermonkey.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/Library/Formula/spidermonkey.rb b/Library/Formula/spidermonkey.rb
index e15349884..7ef6b9dbc 100644
--- a/Library/Formula/spidermonkey.rb
+++ b/Library/Formula/spidermonkey.rb
@@ -18,12 +18,9 @@ class Spidermonkey < Formula
end
def install
- if MACOS_VERSION == 10.5
- # 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.
- # It might not be need with newer spidermonkeys anymore tho.
- ENV['CFLAGS'] = ENV['CFLAGS'].gsub(/-msse[^\s]+/, '')
- end
+ # 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.
+ ENV['CFLAGS'] = ENV['CFLAGS'].gsub(/-msse[^\s]+/, '') if MacOS.leopard?
# For some reason SpiderMonkey requires Autoconf-2.13
ac213_prefix = Pathname.pwd.join('ac213')