Make mod_wsgi and mod_python arch code more similar.

This commit is contained in:
Adam Vandenberg 2010-04-12 11:22:47 -07:00
parent a2186c1183
commit a5f6efd63b

View file

@ -20,12 +20,9 @@ class ModPython <Formula
# Explicitly set the arch in CFLAGS so the PSPModule will build against system Python
# We remove 'ppc' support, so we can pass Intel-optimized CFLAGS.
archs = archs_for_command("python")
arch_flags = ""
arch_flags += " -arch i386" if archs.include?(:i386)
arch_flags += " -arch x86_64" if archs.include?(:x86_64)
ENV.append_to_cflags arch_flags
archs.delete :ppc7400
archs.delete :ppc64
ENV.append_to_cflags archs.collect{ |a| "-arch #{a}" }.join(' ')
inreplace 'Makefile' do |s|
# Don't install to the system Apache libexec folder