Blame 0001-fio-fix-dynamic-engines-soname-definition.patch

0ae777
From 1b2f9943db0d74f4533567b7c8ed54d9c343e3f0 Mon Sep 17 00:00:00 2001
0ae777
From: Yigal Korman <ykorman@gmail.com>
0ae777
Date: Thu, 17 Sep 2020 21:55:14 +0300
0ae777
Subject: [PATCH] fio: fix dynamic engines soname definition
0ae777
0ae777
The SONAME of the engines should not match the name of the dependent
0ae777
library. Otherwise it confuses the dynamic loader into thinking the
0ae777
dependency is already resolved.
0ae777
0ae777
Prefixing the name with fio make more sense here.
0ae777
0ae777
Signed-off-by: Yigal Korman <ykorman@gmail.com>
0ae777
---
0ae777
 Makefile | 2 +-
0ae777
 1 file changed, 1 insertion(+), 1 deletion(-)
0ae777
0ae777
diff --git a/Makefile b/Makefile
0ae777
index 8e1ebc90..e2d0833c 100644
0ae777
--- a/Makefile
0ae777
+++ b/Makefile
0ae777
@@ -256,7 +256,7 @@ define engine_template =
0ae777
 $(1)_OBJS := $$($(1)_SRCS:.c=.o)
0ae777
 $$($(1)_OBJS): CFLAGS := -fPIC $$($(1)_CFLAGS) $(CFLAGS)
0ae777
 engines/lib$(1).so: $$($(1)_OBJS)
0ae777
-	$$(QUIET_LINK)$(CC) -shared -rdynamic -fPIC -Wl,-soname,lib$(1).so.1 $$($(1)_LIBS) -o $$@ $$<
0ae777
+	$$(QUIET_LINK)$(CC) -shared -rdynamic -fPIC -Wl,-soname,fio-$(1).so.1 $$($(1)_LIBS) -o $$@ $$<
0ae777
 ENGS_OBJS += engines/lib$(1).so
0ae777
 all install: $(ENGS_OBJS)
0ae777
 endef
0ae777
-- 
0ae777
2.17.1
0ae777