From a17aec8458544f5ad3ce234b4750dce35a621081 Mon Sep 17 00:00:00 2001 From: Kevin Vigor Date: Mon, 6 May 2019 15:41:30 -0600 Subject: 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 Signed-off-by: Jens Axboe --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Makefile') 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) -- cgit