nomad: rubyify CGO_ENABLED logic.
Closes #7246. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
137e626ea7
commit
ff3bcae5de
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Nomad < Formula
|
|||
ENV["GOPATH"] = buildpath
|
||||
(buildpath/"src/github.com/hashicorp/nomad").install buildpath.children
|
||||
cd "src/github.com/hashicorp/nomad" do
|
||||
if build.with? "dynamic" then ENV["CGO_ENABLED"] = "1" end
|
||||
ENV["CGO_ENABLED"] = "1" if build.with? "dynamic"
|
||||
system "go", "build", "-o", bin/"nomad"
|
||||
prefix.install_metafiles
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue