cmd/link: provide a way to always use external linking if cgo is used #43525
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
This came up as a potential solution for #43505 but I've wanted it for other reasons too (mostly because of other tools like patchelf that rely on implementation details of more common linkers): I would like a way to always use external linking if cgo is used, or to put it another way, never use internal linking to generate a dynamically linked binary. -linkmode and GO_EXTLINK_ENABLED control aspects of this behaviour but can't be used to get what I want.
The text was updated successfully, but these errors were encountered: