Created
June 27, 2014 09:45
-
-
Save itiut/3fb254802f886bd812d4 to your computer and use it in GitHub Desktop.
linuxbrewでbrew install go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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