On Sat, Jan 28, 2023 at 11:27 AM [email protected]
<[email protected]> wrote:
>
> For people like me who have no intention of ever distributing a Go 
> executable, I wonder
> if it would be useful, and possible, to link to a shared library version of 
> the Go
> Runtime. This would make my binaries much smaller and would reduce ware and
> tear on my SSD.
>
> Of course, this presumes that such a shared library could be created in the 
> first place.
>
> I did a quick Google and I didn't find this issue being previously discussed.
>
> Comments?

At least on Linux systems it should work to run "go install
-buildmode=shared std" and then to build other Go programs with
"-linkshared".

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcUhQexYmbD%2BEtXPN2DoRNTDp4GaUvu_NLQ7dkYMAwh2%3DA%40mail.gmail.com.

Reply via email to