ref: 3a10bf57cbaa044693ce7e4ec0e0c7d1ed6a7534
parent: c4599bc14624c0f51929dd0785dbf560b6bea051
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sat Aug 10 20:04:11 EDT 2019
Fix building the OpenGL3 with the Makefile Why can't any buildsystems just be good Like, seriously? Why does pkg-config not have an OpenGL package, so I don't have to deal with this stupid -lopengl32/-lGL stuff? ...Why isn't there a shim libGL that just maps straight to opengl32.lib? Arg
--- a/Makefile
+++ b/Makefile
@@ -217,6 +217,12 @@
else
LIBS += `pkg-config glew --libs`
endif
+
+ ifeq ($(WINDOWS), 1)
+ LIBS += -lopengl32
+ else
+ LIBS += -lGL
+ endif
else ifeq ($(RENDERER), Texture)
SOURCES += src/Backends/Rendering/SDLTexture
else ifeq ($(RENDERER), Surface)