Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Compiling go with --cross-compile-common breaks x509 certificates #17758

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Library/Formula/go.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,23 @@ def install

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 = [
Expand Down