summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Vigor <kvigor@gmail.com>2019-05-06 15:41:30 -0600
committerJens Axboe <axboe@kernel.dk>2019-05-06 15:44:59 -0600
commita17aec8458544f5ad3ce234b4750dce35a621081 (patch)
tree218fbc794de3260bf2ce027280e1a8c02f0453a2
parent54cc960db0bb8fe1d6b2dde1d79d4a24e726ad36 (diff)
liburing: do not build static library with -fPIC
Static libraries are generally built without -fPIC for slight performance gain, make that the case for liburing. Signed-off-by: Kevin Vigor <kvigor@gmail.com> 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 10965dd..02abc3a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -3,8 +3,8 @@ includedir=$(prefix)/include
libdir=$(prefix)/lib
CFLAGS ?= -g -fomit-frame-pointer -O2
-CFLAGS += -Wall -I. -fPIC
-SO_CFLAGS=-shared $(CFLAGS)
+CFLAGS += -Wall -I.
+SO_CFLAGS=-shared -fPIC $(CFLAGS)
L_CFLAGS=$(CFLAGS)
LINK_FLAGS=
LINK_FLAGS+=$(LDFLAGS)