dev-lang/python/python-2.5.1-r2.ebuild contains: export LDFLAGS="-L." It should be replaced with: append-ldflags -L.
Fixed thanks