On Wed, Jan 04, 2017 at 05:30:02PM +0000, Sudeep Holla wrote: > When libelf is disabled in the configuration, we get the following > linker error: > LINK libperf-jvmti.so > ld: cannot find -lelf > Makefile.perf:515: recipe for target 'libperf-jvmti.so' failed > > Jiri pointed out that both librt and libelf are not really required. So > this patch fixes the linker error by getting rid of unwanted libraries > in the linker stage. > > Fixes: 209045adc2bb ("perf tools: add JVMTI agent library") > Cc: Peter Zijlstra <pet...@infradead.org> > Cc: Ingo Molnar <mi...@redhat.com> > Cc: Jiri Olsa <jo...@kernel.org> > Cc: Stephane Eranian <eran...@google.com> > Signed-off-by: Sudeep Holla <sudeep.ho...@arm.com>
Acked-by: Jiri Olsa <jo...@kernel.org> thanks, jirka