+ %gobuildflags() %{expand:%{gocompilerflags} -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} %{?currentgoldflags} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -compressdwarf=false -linkmode=external -extldflags '%{build_ldflags} %{?__golang_extldflags}'" -a -v -x}
|
The golang linker does not support a variety of flags and features,
in particular it does not allow us to set add a .note.package section.
Use linkmode=external so that it works out of the box.
RFC, as I am really not a golang expert, and I do not know if this is the right thing/acceptable thing to do. Looking for feedback.
For context: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/O6HNXXSILRE7WJPZQTDV3JGHEOXK7SGG/