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 245741 [details]
Created attachment 248272 [details, diff]
patched ebuild to respect ldflags and cflags
I have applied the patch and commited the ebuild.
Since the ebuild doesn't have a maintainer, I figured I might right as well do it.