Test/testgl.c is no longer linked to libGL

Hey,

just checked out the latest SVN version.

When running ‘make’ in the test/ directory, I get a lot of OpenGL errors when it tries to link testgl.c

Undefined reference to gl*****

It worked fine with a previous (about a month old) version.

I noticed the -lGL is now missing, I guess somewhere the Makefile got messed up:

[Current]
gcc -o testgl testgl.c -g -O2 -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -lm

[Old version]
gcc -o testgl testgl.c -g -O2 -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -lGL -lm

Should I file a bug, or will someone take care of it? Should be a trivial fix.

Cheers,
Pat

just checked out the latest SVN version.

When running ‘make’ in the test/ directory, I get a lot of OpenGL errors when it tries to link testgl.c

This is fixed in SVN, thanks!

See ya,
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC