diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 0fbee44fca..5681a3eb71 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -590,7 +590,9 @@ class FormulaInstaller end end - if pour_bottle && !Keg.bottle_dependencies.empty? + # We require some dependencies (glibc, GCC 5, etc.) if binaries were built. + # Native binaries shouldn't exist in cross-platform `all` bottles. + if pour_bottle && !formula.bottled?(:all) && !Keg.bottle_dependencies.empty? bottle_deps = if Keg.bottle_dependencies.exclude?(formula.name) Keg.bottle_dependencies elsif Keg.relocation_formulae.exclude?(formula.name)