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