Blame fio-3.29-use-LDFLAGS-for-dynamic-engines.patch

Eric Sandeen f522f1
[PATCH 2/2] fio: use LDFLAGS when linking dynamic engines
Eric Sandeen f522f1
Eric Sandeen f522f1
Without this, locally defined LDFLAGS won't be applied when
Eric Sandeen f522f1
linking the dynamically loaded IO engines.
Eric Sandeen f522f1
Eric Sandeen f522f1
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Eric Sandeen f522f1
---
Eric Sandeen f522f1
Eric Sandeen f522f1
diff --git a/Makefile b/Makefile
Eric Sandeen f522f1
index 5d17bca..00e7953 100644
Eric Sandeen f522f1
@@ -294,7 +295,7 @@ define engine_template =
Eric Sandeen f522f1
 $(1)_OBJS := $$($(1)_SRCS:.c=.o)
Eric Sandeen f522f1
 $$($(1)_OBJS): CFLAGS := -fPIC $$($(1)_CFLAGS) $(CFLAGS)
Eric Sandeen f522f1
 engines/fio-$(1).so: $$($(1)_OBJS)
Eric Sandeen f522f1
-	$$(QUIET_LINK)$(CC) -shared -rdynamic -fPIC -Wl,-soname,fio-$(1).so.1 -o $$@ $$< $$($(1)_LIBS)
Eric Sandeen f522f1
+	$$(QUIET_LINK)$(CC) $(LDFLAGS) -shared -rdynamic -fPIC -Wl,-soname,fio-$(1).so.1 -o $$@ $$< $$($(1)_LIBS)
Eric Sandeen f522f1
 ENGS_OBJS += engines/fio-$(1).so
Eric Sandeen f522f1
 endef
Eric Sandeen f522f1
 else # !CONFIG_DYNAMIC_ENGINES
Eric Sandeen f522f1