See attached build log. (Please do not complain about the need for looking at the build log until you can provide an easy way to open bugs with the correct data picked out of a tinderbox log. Thanks.)
Created attachment 245187 [details] Build log
Created attachment 245303 [details, diff] Patch for gkrellm-mailwatch-2.4.3.ebuild to respect CC, LDFLAGS, and user optimization setting This patch makes the following changes: - Remove forced -O2. The Makefile respected user CFLAGS, but appended a fixed -O2 afterward, so compilation was always -O2, regardless of user setting. - Add $LDFLAGS to link line. - Export CC via tc-export, so that a host-qualified compiler name is used.
Patched (slightly differently) in x11-plugins/gkrellm-mailwatch-2.4.3-r1