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

Add -Wl,-wrap,[^,]+ to enable psx package #39361

Closed
AndrewGMorgan opened this issue Jun 2, 2020 · 1 comment
Closed

Add -Wl,-wrap,[^,]+ to enable psx package #39361

AndrewGMorgan opened this issue Jun 2, 2020 · 1 comment

Comments

@AndrewGMorgan
Copy link
Contributor

@AndrewGMorgan AndrewGMorgan commented Jun 2, 2020

What version of Go are you using (go version)?

Current HEAD of the master branch

Does this issue reproduce with the latest release?

Yes.

What operating system and processor architecture are you using (go env)?

Linux (all architectures)

What did you do?

Want to natively support psx package

https://git.kernel.org/pub/scm/libs/libcap/libcap.git/tree/psx/psx.go

This package enables cgo support for the equivalent of

https://go-review.googlesource.com/c/go/+/210639

To use this package, one needs to apply the equivalent linkage instructions to:

https://git.kernel.org/pub/scm/libs/libcap/libcap.git/tree/libcap/libpsx.pc.in

We need something that works without explicit CGO_LDFLAGS_ALLOW= build environment flags being needed.

What did you expect to see?

What did you see instead?

@gopherbot
Copy link

@gopherbot gopherbot commented Jun 2, 2020

Change https://golang.org/cl/236139 mentions this issue: cmd/go: add -Wl,-wrap,symbol to linker flag whitelist

@gopherbot gopherbot closed this in 9bbe899 Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.