commit 6b64630eff4e22f44028232501e22d9234b53f69 parent 9d7e400334b591614d98dec863f38dcadb629ad3 Author: Michael Savage <mikejsavage@gmail.com> Date: Mon Aug 17 21:56:00 +0200 Use -ldl and -fPIC on Linux Diffstat:
Makefile | | | 3 | ++- |
diff --git a/Makefile b/Makefile @@ -10,7 +10,8 @@ CXXFLAGS += -std=c++11 -O2 -pthread -ggdb3 $(WARNINGS) -DGL_GLEXT_PROTOTYPES -DG # OS detection ifneq ($(shell uname -s),Darwin) - LDFLAGS += -lGL -lGLEW -lglfw + CXXFLAGS += -fPIC + LDFLAGS += -lGL -lGLEW -lglfw -ldl else # 8) CXXFLAGS += -I/usr/local/Cellar/glfw3/3.1.1/include