mod_wsgi - don't build 64bit on 32bit CPUs

master
Adam Vandenberg 2010-09-06 09:38:34 -07:00
parent 389bcfccbc
commit 21d2f15066
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class ModWsgi <Formula
def install
# Remove a flag added when homebrew isn't in /usr/local
# causes apxs to fail with unknown flags s,y,s,t,m
# causes apxs to fail with "unknown flags" error
ENV.remove 'CPPFLAGS', "-isystem #{HOMEBREW_PREFIX}/include"
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
@ -32,6 +32,7 @@ class ModWsgi <Formula
archs = archs_for_command("python")
archs.delete :ppc7400
archs.delete :ppc64
archs.delete :x86_64 if Hardware.is_32_bit?
inreplace 'Makefile' do |s|
s.gsub! "-Wc,'-arch x86_64' -Wc,'-arch i386' -Wc,'-arch ppc7400'",