Re: go: shrink binaries

Adam <[email protected]> Tue, 26 May 2026 15:31:16 +0200
Newsgroups gmane.os.netbsd.devel.packages
Message-ID <[email protected]>
>> But GOFLAGS won't propagate, because many packages override it.
>> 
>> Is there a better way to achieve this?
> 
> Perhaps we can change the packages to use += ?
> Thomas

Maybe we should add GO_LDFLAGS and, if not empty, add -ldflags='${GO_LDFLAGS}' to GOFLAGS, or directly to the targets.
This way, these won't get overwritten, but rather concatenated.


Adam