trade static for dll - how

Hi,

I’ve got a barebones skeleton of an openGL below. Works fine. That is, as long as I supply glut32.dll to executable folder. I want to do a static build instead without .dll. How do I do this?


#include<GL/gl.h>
#include<GL/glut.h>

void display() {
    glClear(GL_COLOR_BUFFER_BIT);
    glFlush();
}
    int main(int argc, char **argv)
{
	
	    	glutInit(&argc, argv);
	    	glutInitWindowSize(512,512);
	    	glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
	        glutCreateWindow("Very minimal OpenGl program");
	        glutDisplayFunc(display);
	        glClearColor(0.0, 0.0, 0.0, 1.0);
	        glutMainLoop(); // Infinite event loop
	        return 0;
return 0;
}