Linking openGL after cuda drivers install

Hello,

I have an old program to render some 3D objects using openGL and SDL. I used to compile it with the following Makefile:

PROGS	=	graphic
OPTS	=	-Wall -m64
LIBSGL	+=	-lGL -lGLU -lSDL

CC	=	g++

graphic: graphic.cpp gl2ps.h
	$(CC) $(OPTS) -w -o $@ graphic.cpp gl2ps.c $(LIBSGL)

clean: 
	rm $(PROGS) Error*

But after I installed the cuda 7.0 drivers I get this error:

/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make: *** [graphic] Error 1

How can I link again to libGL.so ?

Thank you in advance for any help you can give.

Oh, I forgot to say I am working on a linux machine with Ubuntu 14.04 :)

Nevermind, just found this library /usr/lib/libGL.so.1 , so I made a link to it

sudo ln -s /usr/lib/libGL.so.1 /usr/lib/libGL.so

and now it compiles.