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 242083 [details]
Created attachment 244989 [details, diff]
Fixes LDFLAGS, fix calling gcc directly
Thanks Ross, at the end I rewrote half the ebuild right now as I was tired of having bugs like these open :(