Skip to content

Instantly share code, notes, and snippets.

@itiut
Created June 27, 2014 09:45
Show Gist options
  • Save itiut/3fb254802f886bd812d4 to your computer and use it in GitHub Desktop.
Save itiut/3fb254802f886bd812d4 to your computer and use it in GitHub Desktop.
linuxbrewでbrew install go
diff --git a/Library/Formula/go.rb b/Library/Formula/go.rb
index d085bb1..33d71db 100644
--- a/Library/Formula/go.rb
+++ b/Library/Formula/go.rb
@@ -45,7 +45,7 @@ class Go < Formula
['darwin', ['386', 'amd64']],
]
else
- targets = [['darwin', ['']]]
+ targets = [['linux', ['']]]
end
# The version check is due to:
@@ -54,7 +54,7 @@ class Go < Formula
cd 'src' do
targets.each do |os, archs|
- cgo_enabled = os == 'darwin' && build.with?('cgo') ? "1" : "0"
+ cgo_enabled = os == 'linux' && build.with?('cgo') ? "1" : "0"
archs.each do |arch|
ENV['GOROOT_FINAL'] = libexec
ENV['GOOS'] = os
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment