diff options
| author | Jack Nagel | 2012-03-05 22:37:56 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-03-05 22:40:06 -0600 |
| commit | 017abfda0d004215a15b02e17638646d3071ec2b (patch) | |
| tree | db9d49bb49ce7cc17391133f2d30c1ea8ac019aa /Library | |
| parent | 8cb82ec15f052c829b84e569b4dbb43a98f7a7ba (diff) | |
| download | homebrew-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.rb | 6 |
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'", "" |
