aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
author(@ivanvc)2009-09-25 17:14:32 -0500
committerMax Howell2009-10-01 15:46:15 +0100
commit18fdb43d8e540597b2c92cd2cdd38dbf45a54372 (patch)
tree5ff1b9a97bd0adc3778437cb750e9b39aa99c97f /Library
parentc257c0ef4c2bb8138353b06fab8a84c8398604a6 (diff)
downloadhomebrew-18fdb43d8e540597b2c92cd2cdd38dbf45a54372.tar.bz2
Wrong architecture for OS X 10.5
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/openssl.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Formula/openssl.rb b/Library/Formula/openssl.rb
index 56b9b7154..062765942 100644
--- a/Library/Formula/openssl.rb
+++ b/Library/Formula/openssl.rb
@@ -9,7 +9,13 @@ class Openssl <Formula
def install
ENV.deparallelize
- system "./Configure", "darwin64-x86_64-cc", "shared", "zlib-dynamic", "--prefix=#{prefix}"
+ config_flags = ["shared", "zlib-dynamic", "--prefix=#{prefix}"]
+ config_flags << if Hardware.is_64_bit? and MACOS_VERSION == 10.6
+ "darwin64-x86_64-cc"
+ else
+ "darwin-i386-cc"
+ end
+ system "./Configure", *config_flags
system "make"
system "make install"
end