Here is a patch which makes libglut explicitly linking to libGLU. It is needed for compilation of the following packages with -Wl,--as-needed (and binutils-2.16.92, not sure for previous versions since they complain less about unresolved symbols in the linked-to libs): games-action/glaxium-0.5 games-arcade/crack-attack-1.1.14-r1 games-arcade/asteroid-1.1 media-libs/gle-3.0.1-r2 Note that for media-libs/gle, it should avoid the need for the changes proposed in bug #122638.
Created attachment 85868 [details, diff] files/glut-3.7.1-fix-GLU-linking.patch
Created attachment 85869 [details, diff] glut-3.7.1-ebuild.patch patch for the ebuild
CCing games@ since this helps compilation of several games.
I've just checked webcvs.freedesktop.org, and have found they already have this fix: http://webcvs.freedesktop.org/mesa/Mesa-oldtree/src-glut/Makefile.am?r1=1.19&r2=1.20
thanks, I have fixed this in cvs!