From: Ben Hutchings Date: Fri, 25 Sep 2015 20:26:48 +0000 (+0100) Subject: tools/lib/traceevent: Use LDFLAGS X-Git-Tag: archive/raspbian/4.9.82-1+deb9u3+rpi1_jessie~8^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b39a8ece47d55510f4da5dd0655080f25700f62e;p=linux-4.9.git tools/lib/traceevent: Use LDFLAGS Signed-off-by: Ben Hutchings Gbp-Pq: Topic bugfix/all Gbp-Pq: Name tools-lib-traceevent-use-ldflags.patch --- diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile index 7851df1490e0..026e10f39cd9 100644 --- a/tools/lib/traceevent/Makefile +++ b/tools/lib/traceevent/Makefile @@ -172,7 +172,7 @@ $(TE_IN): force $(Q)$(MAKE) $(build)=libtraceevent $(OUTPUT)libtraceevent.so: $(TE_IN) - $(QUIET_LINK)$(CC) --shared $^ -o $@ + $(QUIET_LINK)$(CC) $(LDFLAGS) --shared $^ -o $@ $(OUTPUT)libtraceevent.a: $(TE_IN) $(QUIET_LINK)$(RM) $@; $(AR) rcs $@ $^ @@ -189,7 +189,7 @@ $(PLUGINS_IN): force $(Q)$(MAKE) $(build)=$(plugin_obj) $(OUTPUT)%.so: $(OUTPUT)%-in.o - $(QUIET_LINK)$(CC) $(CFLAGS) -shared -nostartfiles -o $@ $^ + $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) -shared -nostartfiles -o $@ $^ define make_version.h (echo '/* This file is automatically generated. Do not modify. */'; \