aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/john.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Formula/john.rb b/Library/Formula/john.rb
index 6bb5a2e1e..0cd15d049 100644
--- a/Library/Formula/john.rb
+++ b/Library/Formula/john.rb
@@ -18,13 +18,14 @@ class John < Formula
def install
ENV.deparallelize
- arch = Hardware.is_64_bit? ? '64' : 'sse2'
+ arch = MacOS.prefer_64_bit? ? '64' : 'sse2'
+ target = "macosx-x86-#{arch}"
cd 'src' do
inreplace 'Makefile' do |s|
s.change_make_var! "CC", ENV.cc
end
- system "make", "clean", "macosx-x86-#{arch}"
+ system "make", "clean", target
end
# Remove the README symlink and install the real file