Skip to contentSkip to conversation

fio: really use LDFLAGS when linking dynamic engines

PATCH Applied Eric Sandeen 2 participants 2 messages Feb 8, 2022 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fio: really use LDFLAGS when linking dynamic engines

Fix stupid braino on my part.

Fixes 2b3d4a6a924e ("fio: use LDFLAGS when linking dynamic engines")
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 2432f51..0ab4f82 100644
@@ -295,7 +295,7 @@ define engine_template =
 $(1)_OBJS := $$($(1)_SRCS:.c=.o)
 $$($(1)_OBJS): CFLAGS := -fPIC $$($(1)_CFLAGS) $(CFLAGS)
 engines/fio-$(1).so: $$($(1)_OBJS)
-	$$(QUIET_LINK)$(CC) $(DYNAMIC) -shared -rdynamic -fPIC -Wl,-soname,fio-$(1).so.1 -o $$@ $$< $$($(1)_LIBS)
+	$$(QUIET_LINK)$(CC) $(LDFLAGS) -shared -rdynamic -fPIC -Wl,-soname,fio-$(1).so.1 -o $$@ $$< $$($(1)_LIBS)
 ENGS_OBJS += engines/fio-$(1).so
 endef
 else # !CONFIG_DYNAMIC_ENGINES
Signature · 1 line
1.8.3.1
Applied
#1 lore raw
Quoted 3 lines · Eric Sandeen

Fix stupid braino on my part.

Applied, thanks!

[1/1] fio: really use LDFLAGS when linking dynamic engines

      commit: df597be63e26ef59c1538b3ce2026c83684ff7fb

Best regards,

Signature · 1 line
Jens Axboe