diff --git a/Formula/scipy.rb b/Formula/scipy.rb index 4ff09cedf85e5..a9bc1f3237d99 100644 --- a/Formula/scipy.rb +++ b/Formula/scipy.rb @@ -28,6 +28,10 @@ class Scipy < Formula cxxstdlib_check :skip def install + # Fix for current GCC on Big Sur, which does not like 11 as version value + # (reported at https://github.com/iains/gcc-darwin-arm64/issues/31#issuecomment-750343944) + ENV["MACOSX_DEPLOYMENT_TARGET"] = "11.0" if MacOS.version == :big_sur + openblas = Formula["openblas"].opt_prefix ENV["ATLAS"] = "None" # avoid linking against Accelerate.framework ENV["BLAS"] = ENV["LAPACK"] = "#{openblas}/lib/#{shared_library("libopenblas")}"