aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/boost.rb
diff options
context:
space:
mode:
authorMisty De Meo2013-05-05 15:23:58 -0500
committerMisty De Meo2013-05-05 15:26:01 -0500
commitfe9cdbc874a207066e59deb3784ef96cf88107f4 (patch)
treea250536bff16d5ef49ef494f1c0104e35754f5d9 /Library/Formula/boost.rb
parent4f1ee3d01c7a390139db8c3230caeef0d7abbea4 (diff)
downloadhomebrew-fe9cdbc874a207066e59deb3784ef96cf88107f4.tar.bz2
boost: remove hardcoded 'cc' invocation
Fixes #17048.
Diffstat (limited to 'Library/Formula/boost.rb')
-rw-r--r--Library/Formula/boost.rb4
1 files changed, 4 insertions, 0 deletions
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"