From 08a3f6fef1fe6c9fcd18d5ed40ca81097922bb14 Mon Sep 17 00:00:00 2001 From: Yigal Korman Date: Mon, 5 Oct 2020 20:08:54 +0300 Subject: [PATCH] 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 Signed-off-by: Jens Axboe --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1