Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/cgo: remove support for CGOPKGPATH environment variable #11852

Closed
ianlancetaylor opened this issue Jul 24, 2015 · 1 comment
Closed

cmd/cgo: remove support for CGOPKGPATH environment variable #11852

ianlancetaylor opened this issue Jul 24, 2015 · 1 comment
Milestone

Comments

@ianlancetaylor
Copy link
Member

The cgo tool uses an undocumented environment variable CGOPKGPATH. It was used before the existence of the go tool to tell cgo the full path of the package that it was building, which in turn set the name of the shared library that cgo expected to load back when cgo used shared libraries. CGOPKGPATH no longer does anything useful; it just affects the comments in the generated header file.

We should remove CGOPKGPATH entirely to avoid any future confusion.

@ianlancetaylor ianlancetaylor self-assigned this Jul 24, 2015
@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Jul 24, 2015
@gopherbot
Copy link
Contributor

CL https://golang.org/cl/15266 mentions this issue.

@golang golang locked and limited conversation to collaborators Oct 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants