libGLU.la:dependency_libs=' -L/var/tmp/portage/mesa-glu-3.5/work/Mesa-3.5/src /usr/lib/libGL.la /usr/lib/libMesaOS.la -L/usr/X11R6/lib -lSM -lICE -lXmu -lXext -lXi -lX11 -lpthread' libbfd.la:dependency_libs=' -L/var/tmp/portage/binutils-2.11.92.0.12.3-r1/work/binutils-2.11.92.0.12.3/libiberty/pic -liberty' libglut.la:dependency_libs=' -L/var/tmp/portage/mesa-glu-3.5/work/Mesa-3.5/si-glu -L/usr/X11R6/lib -lSM -lICE -lXmu -lXext -lXi -lX11'
Mesa 3.5 seems generally wacky. Try 3.4.2 and let me know, also remerge binutils.
I just stumbled across this. Looks much like #772, which has similar problems with libaudiofile, what do you think? That is, if I understand correctly, these packagse (mesa etc) install .la files that have ${D} hardcoded into them.
Our libtool is fixed to handle these cases. Any package that still do this, should be libtoolized (libtool --copy --force), or if it use libtool-1.4.2, the ltmain.sh should be patched with the latest libtool-portage patch: /usr/portage/sys-devel/libtool/files/1.4.1/libtool-1.4.1-portage.patch-v* All packages that I know of is already fixed.