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

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

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

@golang golang locked and limited conversation to collaborators Jun 3, 2021
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