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, 19 Apr 2018 10:13:03 +0000 (11:13 +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 46cd5f871ad76d48bc7a34f725a31fa12ed5614c..b02dbc163369ec72863137393ccf239c6b119e1d 100644 (file)
@@ -174,7 +174,7 @@ $(TE_IN): force
        $(Q)$(MAKE) $(build)=libtraceevent
 
 $(OUTPUT)libtraceevent.so.$(EVENT_PARSE_VERSION): $(TE_IN)
-       $(QUIET_LINK)$(CC) --shared $^ -Wl,-soname,libtraceevent.so.$(EP_VERSION) -o $@
+       $(QUIET_LINK)$(CC) $(LDFLAGS) --shared $^ -Wl,-soname,libtraceevent.so.$(EP_VERSION) -o $@
        @ln -sf $(@F) $(OUTPUT)libtraceevent.so
        @ln -sf $(@F) $(OUTPUT)libtraceevent.so.$(EP_VERSION)
 
@@ -193,7 +193,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. */';          \