From: Jiri Olsa Date: Wed, 12 Dec 2018 13:29:40 +0000 (+0100) Subject: perf tools: Link libperf-jvmti.so with LDFLAGS variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3f643937aaab04881236b5aabec00f9802c1eda8;p=linux.git perf tools: Link libperf-jvmti.so with LDFLAGS variable So we could propagate distro flags into libperf-jvmti.so library. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20181212132940.840-1-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 22956a85e4c6b..8c1350c591f26 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -654,7 +654,7 @@ $(LIBJVMTI_IN): FORCE $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=jvmti obj=jvmti $(OUTPUT)$(LIBJVMTI): $(LIBJVMTI_IN) - $(QUIET_LINK)$(CC) -shared -Wl,-soname -Wl,$(LIBJVMTI) -o $@ $< + $(QUIET_LINK)$(CC) $(LDFLAGS) -shared -Wl,-soname -Wl,$(LIBJVMTI) -o $@ $< endif $(patsubst perf-%,%.o,$(PROGRAMS)): $(wildcard */*.h)