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 246459 [details]
Updated the ebuild:
* fixes LDFLAGS issue
* fixes calling gcc directly
* ebuild bump to eapi 4 (please review)
Created attachment 340944 [details]