From c55b9a798c4cb786c017b75682974c63718b460a Mon Sep 17 00:00:00 2001 From: Ivan Koshkin Date: Sun, 13 Mar 2011 21:27:30 +0300 Subject: 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 --- Library/Formula/macvim.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') 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", -- cgit v1.2.3