aboutsummaryrefslogtreecommitdiff
path: root/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'opengl')
-rw-r--r--opengl/Makefile.config1
1 files changed, 1 insertions, 0 deletions
diff --git a/opengl/Makefile.config b/opengl/Makefile.config
index b1d7b6f..9b02c5a 100644
--- a/opengl/Makefile.config
+++ b/opengl/Makefile.config
@@ -18,6 +18,7 @@ UNAME := $(shell uname -s)
ifeq ($(UNAME),Linux)
TARGET=linux
LDFLAGS = -lGL -lglut
+ CFLAGS+= -fPIC
endif
ifeq ($(UNAME),Darwin)
TARGET = darwin