From 3a10bf57cbaa044693ce7e4ec0e0c7d1ed6a7534 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sun, 11 Aug 2019 00:04:11 +0100 Subject: [PATCH] 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 --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 34773d39..987ba643 100644 --- a/Makefile +++ b/Makefile @@ -217,6 +217,12 @@ ifeq ($(RENDERER), OpenGL3) 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)