aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJoe Shaw2013-02-11 13:06:22 -0500
committerAdam Vandenberg2013-02-11 20:48:23 -0800
commit92850b300c76c6ec560b923f7cd0d084ba734b8a (patch)
treee586b9ef9a1c167aa2cb54b1f21dfbc4e87a9da3 /Library/Formula
parent123b88f8dbc26979c65a079e1746f18de3ad496d (diff)
downloadhomebrew-92850b300c76c6ec560b923f7cd0d084ba734b8a.tar.bz2
go: host platform must always be the last one built
Each cross-compiler step also rebuilds the host platform. If ENABLE_CGO=0 in a later build step, important OS routines (like looking up x509 certificates in the keychain) are not implemented even for the host platform. Closes #17758. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/go.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Formula/go.rb b/Library/Formula/go.rb
index 3390fa913..9a9b0052b 100644
--- a/Library/Formula/go.rb
+++ b/Library/Formula/go.rb
@@ -20,19 +20,23 @@ class Go < Formula
if build.include? 'cross-compile-all'
targets = [
- ['darwin', ['386', 'amd64'], { :cgo => true }],
['linux', ['386', 'amd64', 'arm'], { :cgo => false }],
['freebsd', ['386', 'amd64'], { :cgo => false }],
['openbsd', ['386', 'amd64'], { :cgo => false }],
['windows', ['386', 'amd64'], { :cgo => false }],
+
+ # Host platform (darwin/amd64) must always come last
+ ['darwin', ['386', 'amd64'], { :cgo => true }],
]
elsif build.include? 'cross-compile-common'
targets = [
- ['darwin', ['386', 'amd64'], { :cgo => true }],
['linux', ['386', 'amd64', 'arm'], { :cgo => false }],
['windows', ['386', 'amd64'], { :cgo => false }],
+
+ # Host platform (darwin/amd64) must always come last
+ ['darwin', ['386', 'amd64'], { :cgo => true }],
]
else
targets = [