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 246774 [details] Build log
Created attachment 291611 [details, diff] respect-ldflags.patch I tried to fix it, but I don't know if I did this correctly. At least portage doesn't prompt LDFLAGS QA warning anymore. It would be better, if someone with knowledge about makefiles looks over it before adding it to the tree.
Fixed, thanks for the patch.