-
-
Notifications
You must be signed in to change notification settings - Fork 684
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
Using -extldflags in gc_linkopts gets ignored by go tool link #305
Comments
jayconrod
pushed a commit
to jayconrod/rules_go
that referenced
this issue
Mar 14, 2017
_emit_go_link_action now scans gc_linkopts for -extldflags arguments. The Go linker will only use the last list passed to it (earlier lists are silently ignored), so we combine these into one external flags list. Fixes bazel-contrib#305
jayconrod
pushed a commit
to jayconrod/rules_go
that referenced
this issue
Mar 14, 2017
_emit_go_link_action now scans gc_linkopts for -extldflags arguments. The Go linker will only use the last list passed to it (earlier lists are silently ignored), so we combine these into one external flags list. Fixes bazel-contrib#305
jayconrod
pushed a commit
to jayconrod/rules_go
that referenced
this issue
Mar 14, 2017
_emit_go_link_action now scans gc_linkopts for -extldflags arguments. The Go linker will only use the last list passed to it (earlier lists are silently ignored), so we combine these into one external flags list. Fixes bazel-contrib#305
jayconrod
added a commit
that referenced
this issue
Mar 15, 2017
_emit_go_link_action now scans gc_linkopts for -extldflags arguments. The Go linker will only use the last list passed to it (earlier lists are silently ignored), so we combine these into one external flags list. Fixes #305
Hi team, I have the same issue with v0.26.0, please help:
|
@sumitd2 Could you try |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to #217 and #161
When passing
-extldflags
withgc_linkopts
:the -extldflags gets added to
go tool link
twice due to_emit_go_link_action
(https://github.com/bazelbuild/rules_go/blob/master/go/def.bzl#L442).It looks like
go tool link
then only uses the second set of flags, meaning the flags passed in throughgc_linkopts
are ignored.Ideally these flags should be merged so that only one
-extldflags
is emitted.The text was updated successfully, but these errors were encountered: