nigels-com / glew

The OpenGL Extension Wrangler Library
Other
2.58k stars 609 forks source link

Add support for building against vendor-neutral GLVND on Linux/EGL #329

Closed vanfanel closed 2 years ago

vanfanel commented 2 years ago

The correct way to link against OpenGL on modern GNU/Linux systems (ie: X11 is a legacy windows server, there could be no windows server at all, etc) is not linking against GLX (-lGL) but using vendor-neutral GLVND (-lOpenGL). This is what this new Makefile does. So building with:

make SYSTEM=linux-egl-glvnd

...is the way.