aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authornibbles 2bits2012-05-04 02:54:54 -0700
committerJack Nagel2012-05-04 17:51:51 -0500
commitdc4245c33ba06f494c4f6e059fd51bc3877ad805 (patch)
treee092733186b53154eb83e70642f09e6f60c66ae2 /Library
parent72b18c571daec6c53866d4a80112bd19d0e7ad73 (diff)
downloadhomebrew-dc4245c33ba06f494c4f6e059fd51bc3877ad805.tar.bz2
subversion: fix error with clang
Subversion will fail with clang when it queries the compiler used to build system Python and finds it is llvm-gcc. It then uses the clang cflags with llvm-gcc to compile the python bindings which causes the usual unknown `-march=native` flag issue. Pre-define the configure variable `ac_cv_python_compile` as ENV.cc Fixes #10914. Closes #12059. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/subversion.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb
index 8938a93f3..65f1ef6f5 100644
--- a/Library/Formula/subversion.rb
+++ b/Library/Formula/subversion.rb
@@ -89,6 +89,10 @@ class Subversion < Formula
args << "--enable-javahl" << "--without-jikes" if build_java?
args << "--with-ruby-sitedir=#{lib}/ruby" if build_ruby?
+ # The system Python is built with llvm-gcc, so we override this
+ # variable to prevent failures due to incompatible CFLAGS
+ ENV['ac_cv_python_compile'] = ENV.cc
+
system "./configure", *args
system "make"
system "make install"