I have xfree86-4.2.0-r8 and ld.so-1.9.11-r2, and ld refuses to link with libGLU. /usr/X11R6/lib/libGLU.so exists (it's a symlink to libGLU.so.1.3), and I don't see what could be wrong with it. ld just says it can't find -lGLU... Bug or stupidity on my side?
Really weird, this... Take a look: styx@elysium lesson35 $ make gcc -o Lesson35 Lesson35.o `sdl-config --libs` -lGL -lGLU /usr/i686-pc-linux-gnu/bin/ld: cannot find -lGLU collect2: ld returned 1 exit status make: *** [Lesson35] Error 1 styx@elysium lesson35 $ cd ../lesson09 styx@elysium lesson09 $ make gcc -Wall -pedantic -ansi lesson09.c -o lesson09 -L/usr/X11R6/lib -lGL -lGLU -lXxf86vm styx@elysium lesson09 $ Shouldn't ld find the library regardless of the objects it's linking?
I'm so stupid. Sorry about this. -L/usr/X11R6/lib did the trick, of course. Five days/nights without proper sleep really affects my brain negatively... Strange ;)