We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ea77c3 + b835b9d commit beccc52Copy full SHA for beccc52
Formula/r/restish.rb
@@ -19,6 +19,13 @@ class Restish < Formula
19
depends_on "go" => :build
20
21
def install
22
+ # Workaround to avoid patchelf corruption when cgo is required (for crypto11)
23
+ if OS.linux? && Hardware::CPU.arch == :arm64
24
+ ENV["CGO_ENABLED"] = "1"
25
+ ENV["GO_EXTLINK_ENABLED"] = "1"
26
+ ENV.append "GOFLAGS", "-buildmode=pie"
27
+ end
28
+
29
system "go", "build", *std_go_args(ldflags: "-s -w -X main.version=#{version}")
30
31
generate_completions_from_executable(bin/"restish", "completion")
0 commit comments