diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-09-25 09:59:46 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-09-25 09:59:46 -0600 |
commit | 4e360f71131918c36774f51688e5c65dea8d43f2 (patch) | |
tree | 93d98d842866ed355a047ee921aee55ea0df427b | |
parent | 1b84a1f6a6c8efbece50ee145904a98737085586 (diff) | |
download | liburing-4e360f71131918c36774f51688e5c65dea8d43f2.tar.gz liburing-4e360f71131918c36774f51688e5c65dea8d43f2.tar.bz2 |
liburing: use -fPIC for both static and shared libraries
At least for ceph, it fails to statically link with liburing because
we don't use -fPIC for the static version of the library.
This reverts commit a17aec8458544f5ad3ce234b4750dce35a621081.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | src/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index 591d457..7b0a3e6 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 -Iinclude/ -SO_CFLAGS=-shared -fPIC $(CFLAGS) +override CFLAGS += -Wall -fPIC -Iinclude/ +SO_CFLAGS=-shared $(CFLAGS) L_CFLAGS=$(CFLAGS) LINK_FLAGS= LINK_FLAGS+=$(LDFLAGS) |