Created attachment 207998 [details]
Mk/Uses/go.mk: Add linker flags to omit symbol table and debug information
unless WITH_DEBUG is defined or port sets its own -ldflags.
Bump PORTREVISION of dependent ports to force relinking.
Attached is a combined patch of review D21730 and review D21854
Created attachment 208138 [details]
Rebase after ports r513850 and ports r513852
Created attachment 208206 [details]
Rebase after ports r514146
Created attachment 208493 [details]
Rebase on ports r515123
I see this new failure:
(In reply to Antoine Brodin from comment #4)
This is a known issue with go on freebsd/386: https://github.com/golang/go/issues/28054, unrelated to this PR.
Committed as ports r517743, ports r517745