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 245416 [details]
Updated ebuild (please review):
* fixes ldflags/cflags/gcc direct calling
* updated patch, since the original causes warnings
* fixes bug 370095 
* ebuild bump to eapi 5
Created attachment 341602 [details]
Created attachment 341606 [details, diff]
Created attachment 341608 [details, diff]
InCVS with the fixes per bug #464004, thanks to Andrew Savchenko.