aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-12-20 12:25:18 -0500
committerJack Nagel2014-12-20 12:25:18 -0500
commite13d38307579a5cf8552d32cf15c04e6f28d22e5 (patch)
tree4894dea01a1110541d6de42957da96a9b5b97e9f /Library/Formula
parent63acf761dce7d2a500e75633612f55357ea0d61f (diff)
downloadhomebrew-e13d38307579a5cf8552d32cf15c04e6f28d22e5.tar.bz2
openssl: fix universal build on 32-bit cpu
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/openssl.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/openssl.rb b/Library/Formula/openssl.rb
index da80ea4cf..dcbb30e4a 100644
--- a/Library/Formula/openssl.rb
+++ b/Library/Formula/openssl.rb
@@ -63,7 +63,10 @@ class Openssl < Formula
system "perl", "./Configure", *(configure_args + arch_args[arch])
system "make", "depend"
system "make"
- system "make", "test" if build.with? "check"
+
+ if (MacOS.prefer_64_bit? || arch == MacOS.preferred_arch) && build.with?("check")
+ system "make", "test"
+ end
if build.universal?
cp Dir["*.?.?.?.dylib", "*.a", "apps/openssl"], dir