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 242167 [details] Build log
I wonder if it was this easy (the Makefile uses LOCAL_LDFLAGS in a seemingly correct spot): $ diff -ur /usr/portage/games-strategy/xbattle/xbattle-5.4.1.ebuild ./xbattle-5.4.1.ebuild --- /usr/portage/games-strategy/xbattle/xbattle-5.4.1.ebuild 2009-04-05 11:08:24.000000000 +0300 +++ ./xbattle-5.4.1.ebuild 2010-08-10 13:55:14.000000000 +0300 @@ -33,7 +33,7 @@ } src_compile() { - emake CDEBUGFLAGS="${CFLAGS}" || die "emake failed" + emake CDEBUGFLAGS="${CFLAGS}" LOCAL_LDFLAGS="${LDFLAGS}" || die "emake failed" } src_install() {
Fixed. Thanks for report and patch