This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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>
  • Loading branch information...
nibbles 2bits authored and jacknagel committed May 4, 2012
1 parent 72b18c5 commit dc4245c33ba06f494c4f6e059fd51bc3877ad805
Showing with 4 additions and 0 deletions.
  1. +4 −0 Library/Formula/subversion.rb
@@ -89,6 +89,10 @@ def install
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"

0 comments on commit dc4245c

Please sign in to comment.