From df597be63e26ef59c1538b3ce2026c83684ff7fb Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Tue, 8 Feb 2022 10:00:39 -0600 Subject: [PATCH] fio: really use LDFLAGS when linking dynamic engines Fix stupid braino on my part. Fixes: 2b3d4a6a924e ("fio: use LDFLAGS when linking dynamic engines") Signed-off-by: Eric Sandeen Link: https://lore.kernel.org/r/1644336039-12774-1-git-send-email-sandeen@redhat.com Signed-off-by: Jens Axboe --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2432f519..0ab4f82c 100644 --- a/Makefile +++ b/Makefile @@ -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 -- 2.25.1