Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/cgo, cmd/ld: support weak imports on OS X #3141
Weak imports are currently not treated correctly. Most likely, ld does not have the knowledge to handle weak imports, and simply ignores them. Weak imports are important for cross-version API compatibility on OS X, allowing you to check for the availability of APIs at runtime, without embedding a hard dependency on that symbol into the binary. See https://golang.org/issue/3131 for a example of where this is an issue.
This issue was closed.