Linking openGL after cuda drivers install


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

CC	=	g++

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

	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 ?

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/ , so I made a link to it

sudo ln -s /usr/lib/ /usr/lib/

and now it compiles.