Re: [PATCH v3] tools: perf: fix linker error when libelf config is disabled

Jiri Olsa
2017-01-04T17:36:55Z

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 <peterz@infradead.org>
> Cc: Ingo Molnar <mingo@redhat.com>
> Cc: Jiri Olsa <jolsa@kernel.org>
> Cc: Stephane Eranian <eranian@google.com>
> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>

Acked-by: Jiri Olsa <jolsa@kernel.org>

thanks,
jirka