From fe9cdbc874a207066e59deb3784ef96cf88107f4 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sun, 5 May 2013 15:23:58 -0500 Subject: boost: remove hardcoded 'cc' invocation Fixes #17048. --- Library/Formula/boost.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Formula/boost.rb b/Library/Formula/boost.rb index a14e05470..3ed67e209 100644 --- a/Library/Formula/boost.rb +++ b/Library/Formula/boost.rb @@ -62,6 +62,10 @@ class Boost < Formula # /usr/local/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0) inreplace 'tools/build/v2/tools/darwin.jam', '-install_name "', "-install_name \"#{HOMEBREW_PREFIX}/lib/" + # boost will try to use cc, even if we'd rather it use, say, gcc-4.2 + inreplace 'tools/build/v2/engine/build.sh', 'BOOST_JAM_CC=cc', "BOOST_JAM_CC=#{ENV.cc}" + inreplace 'tools/build/v2/engine/build.jam', 'toolset darwin cc', "toolset darwin #{ENV.cc}" + # Force boost to compile using the appropriate GCC version open("user-config.jam", "a") do |file| file.write "using darwin : : #{ENV.cxx} ;\n" -- cgit v1.2.3