diff options
| author | Ivan Koshkin | 2011-03-13 21:27:30 +0300 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-13 12:34:47 -0700 |
| commit | c55b9a798c4cb786c017b75682974c63718b460a (patch) | |
| tree | 5d18a566547a4b0b5516f800fe883abc83f701f8 | |
| parent | a630932cf3a206e9903d2ddb8e91b7993cb3e4b7 (diff) | |
| download | homebrew-c55b9a798c4cb786c017b75682974c63718b460a.tar.bz2 | |
Make MacVim compile with Xcode 4.
Xcode 4 does not contain ppc/ppc64 commandline
utils, so src/MacVim/icons/ fails to build
universal binary.
Explicit selection of platform architecture
(x86_64 or i386) solves the problem.
Actually setting environment variable ARCHFLAGS
(e.g. export ARCHFLAGS='-arch x86_64') before
'brew install' should solve the problem,
but corrected formula file is better.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/macvim.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/macvim.rb b/Library/Formula/macvim.rb index a5aa6c676..4c6a732fe 100644 --- a/Library/Formula/macvim.rb +++ b/Library/Formula/macvim.rb @@ -27,9 +27,13 @@ class Macvim < Formula ENV['CXX'] = nil ENV['CXXFLAGS'] = nil + arch = Hardware.is_64_bit? ? 'x86_64' : 'i386' + ENV['ARCHFLAGS'] = "-arch #{arch}" + args = ["--with-macsdk=#{MACOS_VERSION}", # Add some features "--with-features=huge", + "--with-macarchs=#{arch}", "--enable-perlinterp", "--enable-pythoninterp", "--enable-rubyinterp", |
