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 245764 [details]
Created attachment 245770 [details, diff]
patch to fix LDFLAGS, CFLAGS, and some other issues.
@Ross Thanks for the patch! Few remarks though:
* epatch dies by itself
* vars passed to make during runtime overcome those defined in Makefile, often simpler than sedding ;)
Fixed in CVS
+*x2x-1.27-r3 (03 Sep 2010)
+ 03 Sep 2010; Kacper Kowalik <firstname.lastname@example.org> +x2x-1.27-r3.ebuild:
+ Respect CC,CFLAGS,LDFLAGS wrt bug 335701. Thanks to Diego for the report
+ and Ross Smith <email@example.com> for patch.