Re: [PATCH 4/4] perf tools: add JVMTI agent library

Stephane Eranian
2015-02-12T16:09:55Z

On Thu, Feb 12, 2015 at 8:25 AM, Jiri Olsa <jolsa@redhat.com> wrote:
> On Wed, Feb 11, 2015 at 12:42:45AM +0100, Stephane Eranian wrote:
>
> SNIP
>
>> +LN=ln -sf
>> +RM=rm
>> +
>> +SJVMTI=libjvmti.so.$(VERSION).$(REVISION).$(AGE)
>> +VJVMTI=libjvmti.so.$(VERSION)
>> +SLDFLAGS=-shared -Wl,-soname -Wl,$(VLIBPFM)
>> +SOLIBEXT=so
>> +
>> +JDIR=$(shell /usr/sbin/update-java-alternatives -l | head -1 | cut -d ' ' -f 3)
>
> I had to se JDIR manualy..
>
> is there some generic way to get above dir? It does not
> work on Fedora, 'yum provides' did not find any package
> carrying update-java-alternatives binary..
>
This one comes from the java-common package on Ubuntu.