diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/superenv.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/superenv.rb b/Library/Homebrew/superenv.rb index bb32d0a29..dfaee9324 100644 --- a/Library/Homebrew/superenv.rb +++ b/Library/Homebrew/superenv.rb @@ -26,6 +26,11 @@ module Superenv attr_accessor :keg_only_deps, :deps, :x11 alias_method :x11?, :x11 + def self.extended(base) + base.keg_only_deps = [] + base.deps = [] + end + def reset %w{CC CXX OBJC OBJCXX CPP MAKE LD LDSHARED CFLAGS CXXFLAGS OBJCFLAGS OBJCXXFLAGS LDFLAGS CPPFLAGS @@ -311,8 +316,6 @@ if not superenv? ENV.prepend 'PATH', "#{HOMEBREW_PREFIX}/bin", ':' unless ORIGINAL_PATHS.include? HOMEBREW_PREFIX/'bin' else ENV.extend(Superenv) - ENV.keg_only_deps = [] - ENV.deps = [] end |
