https://bugzilla.redhat.com/show_bug.cgi?id=1248071
--- Comment #5 from Jan Chaloupka jchaloup@redhat.com --- Header of etcd's spec files starts with:
%if 0%{?fedora} %global with_devel 1 %global with_bundled 0 %global with_debug 0 %global with_check 1 %else %global with_devel 0 %global with_bundled 1 %global with_debug 0 %global with_check 0 %endif
yes. `GOOS=freebsd go build <source>` will produce a binary for freebsd.
In that case, what about to add Fedora specific option --increase-header-for-debug or shorter name that I will set when building on Fedora with debuginfo? I can prepare a patch if you agree with the hack? This will not break cross-compiling.
Or instead of option set environment variable INCREASE_HEADER_FOR_DEBUG (which is four-line hack).
At the moment there is not debuginfo for etcd and kubernetes due to this.