summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYigal Korman <ykorman@gmail.com>2020-10-05 20:08:54 +0300
committerJens Axboe <axboe@kernel.dk>2020-11-01 07:16:16 -0700
commit08a3f6fef1fe6c9fcd18d5ed40ca81097922bb14 (patch)
tree8b4afdfe53e0b85f2c6173ff82646a6c25e16dcd
parent8c17a6248bd227a9f3cc3da52bd1cb922dc6cf81 (diff)
downloadfio-08a3f6fef1fe6c9fcd18d5ed40ca81097922bb14.tar.gz
fio-08a3f6fef1fe6c9fcd18d5ed40ca81097922bb14.tar.bz2
fio: fix dynamic engines soname definition
The SONAME of the engines should not match the name of the dependent library. Otherwise it confuses the dynamic loader into thinking the dependency is already resolved. Prefixing the name with fio make more sense here. Signed-off-by: Yigal Korman <ykorman@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5ed8a808..48788f24 100644
--- a/Makefile
+++ b/Makefile
@@ -569,7 +569,7 @@ endif
ifdef CONFIG_DYNAMIC_ENGINES
engines/lib$(1).so: $$($(1)_OBJS)
- $$(QUIET_LINK)$(CC) -shared -rdynamic -fPIC -Wl,-soname,lib$(1).so.1 $$($(1)_LIBS) -o $$@ $$<
+ $$(QUIET_LINK)$(CC) -shared -rdynamic -fPIC -Wl,-soname,fio-$(1).so.1 $$($(1)_LIBS) -o $$@ $$<
endif
clean: FORCE