On Tue, Apr 24, 2018 at 10:15 AM, Philip Brown <p...@bolthole.com> wrote: > > On Tuesday, April 24, 2018 at 6:56:21 AM UTC-7, Ian Lance Taylor wrote: >> >> >> Sorry, you're quite right. I completely forgot that >> -buildmode=archive is the default for a non-main package. >> > > Okay, so just to close the loop on information sharing, I think you are > saying that > -buildmode=archive > is what the gcc go front end uses, when it builds packages under > $HOME/go/pkg/gccgo_$OS_$ARCH/ > > (which comes as a result of "go get x/y/z") > It is also interesting that it does not appear to generate .gox files under > there to match.
The .gox files are used for the Go standard library, which is typically a single shared library. Go packages other than the standard library are normally linked directly into the program, so a single .a file per package suffices. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.