summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-12-21 09:07:06 -0700
committerJens Axboe <axboe@kernel.dk>2019-12-21 09:09:08 -0700
commit75cad68b953fe0fabbc4b1ced1ab4ba0ed5da18e (patch)
tree4b02e5f0eed196dcea4f84f6d044f0a1d7b81721
parente59b537f48ef7c8b5f9b9402c354daefcabbfd8c (diff)
downloadliburing-75cad68b953fe0fabbc4b1ced1ab4ba0ed5da18e.tar.gz
liburing-75cad68b953fe0fabbc4b1ced1ab4ba0ed5da18e.tar.bz2
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. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--src/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 954f6a0..2e4ad06 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -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)