From 7cd8199170eef2d411b9ab05bb588e20690cfff1 Mon Sep 17 00:00:00 2001 From: Dave Cottlehuber Date: Tue, 17 Apr 2012 10:34:14 +0200 Subject: OpenSSL: enable 64-bit support Build 64-bit by default where appropriate. Closes #11701. Signed-off-by: Charlie Sharpsteen --- Library/Formula/openssl.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/openssl.rb b/Library/Formula/openssl.rb index e6eaf3b94..f6813da48 100644 --- a/Library/Formula/openssl.rb +++ b/Library/Formula/openssl.rb @@ -9,18 +9,19 @@ class Openssl < Formula "The OpenSSL provided by Leopard (0.9.7) is too old for some software." def install - system "./config", "--prefix=#{prefix}", + args = [ "./Configure", + "--prefix=#{prefix}", "--openssldir=#{etc}/openssl", "zlib-dynamic", "shared" + ] + + args << (MacOS.prefer_64_bit? ? "darwin64-x86_64-cc" : "darwin-i386-cc") + + system "perl", *args ENV.deparallelize # Parallel compilation fails system "make" system "make test" system "make install MANDIR=#{man} MANSUFFIX=ssl" end - - def caveats; <<-EOS.undent - Note that the libraries built tend to be 32-bit only, even on Snow Leopard. - EOS - end end -- cgit v1.2.3