From: Yigal Korman Date: Mon, 5 Oct 2020 17:08:54 +0000 (+0300) Subject: fio: fix dynamic engines soname definition X-Git-Tag: fio-3.24~15 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=08a3f6fef1fe6c9fcd18d5ed40ca81097922bb14;p=fio.git 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 --- 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