On Wed, Jul 23, 2025 at 7:50 PM Andrea Pappacoda <[email protected]> wrote: > > Hi! > > First message here on the list :) > > Yesterday I came across go's -buildmode=shared and -linkshared options. > As far as I know, there hasn't been any discussion about them here. > > In case you don't know what they do (just like myself a few days ago), > they can be used to achieve dynamic linking in Go programs. Unlike other > languages like C, though, binary compatibility is not guaranteed across > compiler releases. -buildmode=shared can be used while building to > generate a shared object, while -linkshared tells the toolchain to use > such shared objects for linking. More information can be found running > `go help buildmode` and at <https://go.dev/s/execmodes>. > > Why aren't we using them in Debian? Did we already have this discussion, > and I have simply missed it? > > Curious to know! Bye :)
AFAIK, it's not well supported by upstream. See https://github.com/golang/go/issues/47788#issuecomment-954890659 -- Shengjing Zhu
