summaryrefslogtreecommitdiff
path: root/dev-lang/go/files/go-1.5.1-darwin-sysctl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/go/files/go-1.5.1-darwin-sysctl.patch')
-rw-r--r--dev-lang/go/files/go-1.5.1-darwin-sysctl.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-lang/go/files/go-1.5.1-darwin-sysctl.patch b/dev-lang/go/files/go-1.5.1-darwin-sysctl.patch
new file mode 100644
index 0000000000..5cec4b6082
--- /dev/null
+++ b/dev-lang/go/files/go-1.5.1-darwin-sysctl.patch
@@ -0,0 +1,11 @@
+--- src/cmd/dist/util.go.
++++ src/cmd/dist/util.go
+@@ -404,7 +404,7 @@
+ switch gohostos {
+ case "darwin":
+ // Even on 64-bit platform, darwin uname -m prints i386.
+- if strings.Contains(run("", CheckExit, "sysctl", "machdep.cpu.extfeatures"), "EM64T") {
++ if strings.Contains(run("", CheckExit, "/usr/sbin/sysctl", "machdep.cpu.extfeatures"), "EM64T") {
+ gohostarch = "amd64"
+ }
+ case "solaris":