diff options
| author | Max Howell | 2012-09-25 12:04:42 -0400 |
|---|---|---|
| committer | Max Howell | 2012-09-25 12:04:42 -0400 |
| commit | 4a554dd5b224c73c019eb4e0a44b5eec167d6d15 (patch) | |
| tree | d6ddf4f5fa7d4e5b9e97ba864da3f4ff50e56c82 /Library | |
| parent | 074d4268863c28d3208e8f4daeb6fb529f2b193a (diff) | |
| download | homebrew-4a554dd5b224c73c019eb4e0a44b5eec167d6d15.tar.bz2 | |
ENV.fortran adds back superenv removed PATHs
Fixes #15103.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 2c0108548..70e000e0a 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -446,6 +446,10 @@ class << ENV def fortran fc_flag_vars = %w{FCFLAGS FFLAGS} + # superenv removes these PATHs, but this option needs them + # TODO fix better, probably by making a super-fc + ENV['PATH'] += ":#{HOMEBREW_PREFIX}/bin:/usr/local/bin" + if self['FC'] ohai "Building with an alternative Fortran compiler. This is unsupported." self['F77'] = self['FC'] unless self['F77'] @@ -470,7 +474,7 @@ class << ENV EOS end - elsif `/usr/bin/which gfortran`.chomp.size > 0 + elsif `/usr/bin/which gfortran`.chuzzle ohai <<-EOS.undent Using Homebrew-provided fortran compiler. This may be changed by setting the FC environment variable. |
