diff options
| author | Bert JW Regeer | 2011-09-02 14:44:15 -0600 |
|---|---|---|
| committer | Adam Vandenberg | 2011-09-02 13:56:02 -0700 |
| commit | 59d0f7975c47def12d16e6326a85c35cde7e4d57 (patch) | |
| tree | 33ebf2431de9e7878166d0a97b4aca7f5eb625e5 | |
| parent | cb3a5242483ac7489c495f3b474058f164623f3c (diff) | |
| download | homebrew-59d0f7975c47def12d16e6326a85c35cde7e4d57.tar.bz2 | |
botan: Fix build on Mac OS X Snow Leopard
On Snow Leopard running a 64 bit OS the Botan configure script will
attempt to build a 32 bit binary using a compiler that can support 64
bit, we have to explicitly state that we want to have 64 bit library
built.
Unfortunately there is no way to build a universal library/binary for
Botan as it currently stands.
This is an oversight on my part, it works without issues on Lion where
it picks up the fact that it is a 64 bit OS correctly and compiles
without issues.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/botan.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/botan.rb b/Library/Formula/botan.rb index e1ec7af9c..29cf1d62a 100644 --- a/Library/Formula/botan.rb +++ b/Library/Formula/botan.rb @@ -6,7 +6,10 @@ class Botan < Formula md5 '7ae93e205491a8e75115bfca983ff7f9' def install - system "./configure.py", "--prefix=#{prefix}" + args = ["--prefix=#{prefix}"] + args << "--cpu=x86_64" if MacOS.prefer_64_bit? + + system "./configure.py", *args system "make install" end end |
