From: Jens Axboe Date: Mon, 9 Nov 2020 17:05:11 +0000 (-0700) Subject: Makefile: ensure that external libs are linked properly with dynamic engine X-Git-Tag: fio-3.24~5 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=ff61a9c8e9f16e401e642c6751b1a7baaa3e058e;p=fio.git Makefile: ensure that external libs are linked properly with dynamic engine Signed-off-by: Jens Axboe --- diff --git a/Makefile b/Makefile index ca454318..0d3c877e 100644 --- a/Makefile +++ b/Makefile @@ -252,7 +252,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) -shared -rdynamic -fPIC -Wl,-soname,fio-$(1).so.1 $$($(1)_LIBS) -o $$@ $$< + $$(QUIET_LINK)$(CC) -shared -rdynamic -fPIC -Wl,-soname,fio-$(1).so.1 -o $$@ $$< $$($(1)_LIBS) ENGS_OBJS += engines/fio-$(1).so endef else # !CONFIG_DYNAMIC_ENGINES