diff options
| author | Misty De Meo | 2013-05-05 15:23:58 -0500 | 
|---|---|---|
| committer | Misty De Meo | 2013-05-05 15:26:01 -0500 | 
| commit | fe9cdbc874a207066e59deb3784ef96cf88107f4 (patch) | |
| tree | a250536bff16d5ef49ef494f1c0104e35754f5d9 /Library/Formula/boost.rb | |
| parent | 4f1ee3d01c7a390139db8c3230caeef0d7abbea4 (diff) | |
| download | homebrew-fe9cdbc874a207066e59deb3784ef96cf88107f4.tar.bz2 | |
boost: remove hardcoded 'cc' invocation
Fixes #17048.
Diffstat (limited to 'Library/Formula/boost.rb')
| -rw-r--r-- | Library/Formula/boost.rb | 4 | 
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"  | 
