build: permit weak imports in Go reverse deps.

Go makes extensive use of weak imports so we need to allow them when
building Go-using software.

Closes https://github.com/Homebrew/homebrew-core/issues/4047.
This commit is contained in:
Mike McQuaid 2016-08-20 16:45:02 +01:00
parent bb4d168c48
commit 3c65298519

View File

@ -79,6 +79,11 @@ class Build
ENV.activate_extensions!
# Go makes extensive use of weak imports.
if formula_deps.any? { |f| f.name == "go" }
ENV.permit_weak_imports
end
if superenv?
ENV.keg_only_deps = keg_only_deps
ENV.deps = formula_deps