From 017abfda0d004215a15b02e17638646d3071ec2b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 5 Mar 2012 22:37:56 -0600 Subject: mod_wsgi: use the right compiler This just keeps getting ugler, but it is necessary. Signed-off-by: Jack Nagel --- Library/Formula/mod_wsgi.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library') diff --git a/Library/Formula/mod_wsgi.rb b/Library/Formula/mod_wsgi.rb index 169d5ca2d..df0abe909 100644 --- a/Library/Formula/mod_wsgi.rb +++ b/Library/Formula/mod_wsgi.rb @@ -14,7 +14,13 @@ class ModWsgi < Formula system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking" + # We need apxs to specify the right compiler to its libtool, but + # doing so causes libtool to die unless this flag is also set + ENV['LTFLAGS'] = '--tag=CC' + inreplace 'Makefile' do |s| + # APXS uses just "gcc" unless we specify CC this way + s.gsub! '$(APXS)', "$(APXS) -S CC=#{ENV.cc}" # Remove 'ppc' support, so we can pass Intel-optimized CFLAGS. cflags = s.get_make_var("CFLAGS") cflags.gsub! "-Wc,'-arch ppc7400'", "" -- cgit v1.2.3