Only use -fPIC for the shared library
We don't need it on the static side, and for some reason we were left
in a weird state where we used -shared -fPIC on the shared object file,
but just -fPIC on the static library.
@@ -3,8 +3,8 @@ includedir ?= $(prefix)/include
libdir ?= $(prefix)/lib
CFLAGS ?= -g -fomit-frame-pointer -O2
-override CFLAGS += -Wall -fPIC -Iinclude/
-SO_CFLAGS=-shared $(CFLAGS)
+override CFLAGS += -Wall -Iinclude/
+SO_CFLAGS=-shared -fPIC $(CFLAGS)
L_CFLAGS=$(CFLAGS)
LINK_FLAGS=
LINK_FLAGS+=$(LDFLAGS)
