You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should perhaps be some way to do this, but it won't be via -gccgoflags. That is a flag to pass to gccgo/GoLLVM, but the key step here is not being executed by gccgo/GoLLVM at all.
It may be difficult to implement this. There is a comment in the cmd/go code that says:
// The user remains responsible for linking against
// -lgo -lpthread -lm in the final link. We can't use
// -r to pick them up because we can't combine
// split-stack and non-split-stack code in a single -r
// link, and libgo picks up non-split-stack code from
But it may be possible for cmd/go to use the ar program to add all of libgo.a to the generated archive.