diff options
| author | Jack Nagel | 2013-08-19 12:32:57 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-08-19 12:32:57 -0500 |
| commit | d09e23c8b1df7404d95b963e53bef3d1936a921a (patch) | |
| tree | 24b6f5c3c390c2d8752480b311991cabb1e6ee8a /Library | |
| parent | eebc04ec9bfaca32024e2cb80ebf52b8ee68a7c9 (diff) | |
| download | brew-d09e23c8b1df7404d95b963e53bef3d1936a921a.tar.bz2 | |
Move extra stdenv setup to extended callback
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 5e35bace5..64da1939a 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -14,7 +14,6 @@ module EnvActivation extend(Superenv) else extend(HomebrewEnvExtension) - prepend 'PATH', "#{HOMEBREW_PREFIX}/bin", ':' unless ORIGINAL_PATHS.include? HOMEBREW_PREFIX/'bin' end end end @@ -27,6 +26,12 @@ module HomebrewEnvExtension FC_FLAG_VARS = %w{FCFLAGS FFLAGS} DEFAULT_FLAGS = '-march=core2 -msse4' + def self.extended(base) + unless ORIGINAL_PATHS.include? HOMEBREW_PREFIX/'bin' + base.prepend_path 'PATH', "#{HOMEBREW_PREFIX}/bin" + end + end + def setup_build_environment # Clear CDPATH to avoid make issues that depend on changing directories delete('CDPATH') |
