aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-03-05 22:37:56 -0600
committerJack Nagel2012-03-05 22:40:06 -0600
commit017abfda0d004215a15b02e17638646d3071ec2b (patch)
treedb9d49bb49ce7cc17391133f2d30c1ea8ac019aa /Library
parent8cb82ec15f052c829b84e569b4dbb43a98f7a7ba (diff)
downloadhomebrew-017abfda0d004215a15b02e17638646d3071ec2b.tar.bz2
mod_wsgi: use the right compiler
This just keeps getting ugler, but it is necessary. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mod_wsgi.rb6
1 files changed, 6 insertions, 0 deletions
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'", ""