On Mon, Apr 23, 2018 at 10:32 PM, Philip Brown <p...@bolthole.com> wrote: > On Mon, Apr 23, 2018 at 9:23 PM, Ian Lance Taylor <i...@golang.org> wrote: >> >> >> There is no -buildmode=archive. Using -buildmode=c-archive should >> work if that is what you want to do. >> > > ORLLY? :-} > > $ go help buildmode > The 'go build' and 'go install' commands take a -buildmode argument which > indicates which kind of object file is to be built. Currently supported values > are: > > -buildmode=archive > Build the listed non-main packages into .a files. Packages > named > main are ignored.
Sorry, you're quite right. I completely forgot that -buildmode=archive is the default for a non-main package. 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.