diff options
| author | Mike McQuaid | 2017-10-29 13:41:51 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2017-10-29 13:41:51 +0000 |
| commit | f72aba548d95d6b1eb320adbde70576e3476f010 (patch) | |
| tree | 1e8697d17851ec7ad83cbf5ffa3a907dacfa34be /Library | |
| parent | 7caca570736a6232512328992b398270dbbf3f4f (diff) | |
| download | brew-f72aba548d95d6b1eb320adbde70576e3476f010.tar.bz2 | |
ENV/std: fully extend from HOMEBREW_PATH.
Rather than just re-adding HOMEBREW_PREFIX/bin if it's missing re-add
everything from HOMEBREW_PATH. This works well with or without
environment filtering being enabled but with environment filtering it
ensures that ENV/std just builds on the original user environment.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ENV/std.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb index 4e5d0683a..3d082dc83 100644 --- a/Library/Homebrew/extend/ENV/std.rb +++ b/Library/Homebrew/extend/ENV/std.rb @@ -9,15 +9,12 @@ module Stdenv SAFE_CFLAGS_FLAGS = "-w -pipe".freeze DEFAULT_FLAGS = "-march=core2 -msse4".freeze - def self.extended(base) - return if ORIGINAL_PATHS.include? HOMEBREW_PREFIX/"bin" - base.prepend_path "PATH", "#{HOMEBREW_PREFIX}/bin" - end - # @private def setup_build_environment(formula = nil) super + PATH.new(ENV["HOMEBREW_PATH"]).each { |p| prepend_path "PATH", p } + # Set the default pkg-config search path, overriding the built-in paths # Anything in PKG_CONFIG_PATH is searched before paths in this variable self["PKG_CONFIG_LIBDIR"] = determine_pkg_config_libdir |
