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 244695 [details] Build log
Created attachment 244823 [details] ebuild to apply the makefile.in patch below
Created attachment 244825 [details, diff] patch to fix respecting LDFlags
The package is maintainer-needed, unmaintained upstream for over two years. I wonder if it even still works.
Fixed in 0.9.7.1-r1.