Build log to come, report goes upstream, too.
Created attachment 236803 [details] build.log
+ 30 Jun 2010; Samuli Suominen <ssuominen@gentoo.org> erlang-14.1.ebuild, + +files/erlang-14.1-lm.patch: + Fix building with -Wl,--as-needed wrt #325969 by Christian Faulhammer.
The patch has been submitted upstream.
For the records: The fix has been incorporated by upstream.