aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ARGV.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index a78073b9b..3fef2dcd0 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -64,7 +64,8 @@ module HomebrewArgvExtension
end
def build_from_source?
- return true if flag? '--build-from-source' or ENV['HOMEBREW_BUILD_FROM_SOURCE'] or not MacOS.lion?
+ return true if flag? '--build-from-source' or ENV['HOMEBREW_BUILD_FROM_SOURCE'] \
+ or not MacOS.lion? or HOMEBREW_PREFIX.to_s != '/usr/local'
options = options_only
options.delete '--universal'
not options.empty?