Blame SOURCES/0001-fio-use-LDFLAGS-when-linking-dynamic-engines.patch

3b2ee1
From 2b3d4a6a924e0aa82654d3b96fb134085af7a98a Mon Sep 17 00:00:00 2001
3b2ee1
From: Eric Sandeen <esandeen@redhat.com>
3b2ee1
Date: Wed, 26 Jan 2022 08:49:45 -0600
3b2ee1
Subject: [PATCH] fio: use LDFLAGS when linking dynamic engines
3b2ee1
3b2ee1
Without this, locally defined LDFLAGS won't be applied when
3b2ee1
linking the dynamically loaded IO engines.
3b2ee1
3b2ee1
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
3b2ee1
Signed-off-by: Jens Axboe <axboe@kernel.dk>
3b2ee1
---
3b2ee1
 Makefile | 2 +-
3b2ee1
 1 file changed, 1 insertion(+), 1 deletion(-)
3b2ee1
3b2ee1
diff --git a/Makefile b/Makefile
3b2ee1
index 76eb0d7d..00e79539 100644
3b2ee1
--- a/Makefile
3b2ee1
+++ b/Makefile
3b2ee1
@@ -295,7 +295,7 @@ define engine_template =
3b2ee1
 $(1)_OBJS := $$($(1)_SRCS:.c=.o)
3b2ee1
 $$($(1)_OBJS): CFLAGS := -fPIC $$($(1)_CFLAGS) $(CFLAGS)
3b2ee1
 engines/fio-$(1).so: $$($(1)_OBJS)
3b2ee1
-	$$(QUIET_LINK)$(CC) -shared -rdynamic -fPIC -Wl,-soname,fio-$(1).so.1 -o $$@ $$< $$($(1)_LIBS)
3b2ee1
+	$$(QUIET_LINK)$(CC) $(LDFLAGS) -shared -rdynamic -fPIC -Wl,-soname,fio-$(1).so.1 -o $$@ $$< $$($(1)_LIBS)
3b2ee1
 ENGS_OBJS += engines/fio-$(1).so
3b2ee1
 endef
3b2ee1
 else # !CONFIG_DYNAMIC_ENGINES
3b2ee1
-- 
3b2ee1
2.31.1
3b2ee1