tools/lib/traceevent: Use LDFLAGS
authorBen Hutchings <ben@decadent.org.uk>
Fri, 25 Sep 2015 20:26:48 +0000 (21:26 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 28 Sep 2017 17:27:56 +0000 (18:27 +0100)
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name tools-lib-traceevent-use-ldflags.patch

tools/lib/traceevent/Makefile

index 7851df1490e0a81f6a17776bbdb464f564a99894..026e10f39cd940b1fec0d9ae1555fdb6042d01ef 100644 (file)
@@ -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. */';          \