aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Makefile b/plugins/Makefile
index 2979387..e14bb2f 100644
--- a/plugins/Makefile
+++ b/plugins/Makefile
@@ -1,5 +1,5 @@
CC = gcc
-CFLAGS = -Wall -Wextra -std=c11 -g -fwrapv -I..
+CFLAGS = -Wall -Wextra -std=c11 -g -fwrapv -I.. -fPIC
ifeq ($(shell uname),Darwin)
SO_EXT = dylib
@@ -8,7 +8,6 @@ else
SO_EXT = so
SO_FLAGS = -shared
endif
-SO_FLAGS += -fPIC
TARGET = $(PLUGINNAME)/$(PLUGINNAME).$(SO_EXT)