From: Ben Hutchings Date: Sat, 15 Jan 2022 21:59:11 +0000 (+0100) Subject: tools/perf: Fix missing LDFLAGS for some programs X-Git-Tag: archive/raspbian/5.16.7-2+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5415ec0f394e47f295520f2d92341b94fe21d552;p=linux.git tools/perf: Fix missing LDFLAGS for some programs Signed-off-by: Ben Hutchings Gbp-Pq: Topic bugfix/all Gbp-Pq: Name tools-perf-fix-missing-ldflags-for-some-programs.patch --- diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 4cf5e32922f..1ef1189d670 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -668,7 +668,7 @@ $(JEVENTS_IN): FORCE $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=pmu-events obj=jevents $(JEVENTS): $(JEVENTS_IN) - $(QUIET_LINK)$(HOSTCC) $(JEVENTS_IN) -o $@ + $(QUIET_LINK)$(HOSTCC) $(LDFLAGS) $(JEVENTS_IN) -o $@ $(PMU_EVENTS_IN): $(JEVENTS) FORCE $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=pmu-events obj=pmu-events @@ -797,7 +797,7 @@ $(OUTPUT)dlfilters/%.o: dlfilters/%.c include/perf/perf_dlfilter.h .SECONDARY: $(DLFILTERS:.so=.o) $(OUTPUT)dlfilters/%.so: $(OUTPUT)dlfilters/%.o - $(QUIET_LINK)$(CC) $(EXTRA_CFLAGS) -shared -o $@ $< + $(QUIET_LINK)$(CC) $(EXTRA_CFLAGS) $(LDFLAGS) -shared -o $@ $< ifndef NO_JVMTI LIBJVMTI_IN := $(OUTPUT)jvmti/jvmti-in.o