-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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/go: accept -Wl,-R,path #32167
Comments
cgo flags are white listed, see https://golang.org/cmd/cgo/
cc @ianlancetaylor incase the flag could be added to the list |
I see. Okay, let me expand my argument for the specific LDFLAGS, this is I believe Reference code, if relevant (debug quality, and I've just picked up go): |
Yes, we should accept that. We currently accept -Wl,-rpath but not -Wl,-R. If anybody wants to send a patch, the place is cmd/go/internal/work/security.go. @gopherbot Please open backport to 1.12. |
Backport issue(s) opened: #32168 (for 1.12). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
Thanks for looking into this. |
@ng-0 you want to do the change? |
Yes (in fact I've looked into this already). There could be some delay for other tasks take priority. |
Change https://golang.org/cl/178397 mentions this issue: |
Change https://golang.org/cl/181437 mentions this issue: |
This is a backport of CL 178397. Updates #32167 Fixes #32168 Change-Id: Idb16a01d56814ea09ad277798787355dc6a3121f Reviewed-on: https://go-review.googlesource.com/c/go/+/181437 Reviewed-by: Jason Donenfeld <[email protected]> Reviewed-by: Emmanuel Odeke <[email protected]> Run-TryBot: Jason Donenfeld <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Given any code which involves:
#cgo LDFLAGS: -Wl,-R/usr/pkg/lib
or similar,
is returned.
What did you expect to see?
A successful treatment of the LDFLAGS.
I don't know if this is a feature limitation or a bug, but given that I need to invoke
LDFLAGS this way for out-of-pkgsrc builds usually, I consider this a bug.
What did you see instead?
See above.
The text was updated successfully, but these errors were encountered: