perf jit: Fix build issue on Ubuntu
authorAnton Blanchard <anton@samba.org>
Thu, 13 Oct 2016 02:20:43 +0000 (13:20 +1100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Oct 2016 14:25:34 +0000 (11:25 -0300)
commit53613e005496234bb684e5db551fbcededa73999
tree03453bf5dae8e8b5e5386ed869b615e4f50f7bf1
parent2d470b62fa24f8d0024e8d392d28814c287ee1f1
perf jit: Fix build issue on Ubuntu

When building on Ubuntu 16.04, I get the following error:

Makefile:49: *** the openjdk development package appears to me missing, install and try again.  Stop.

The problem is that update-java-alternatives has multiple spaces between
fields, and cut treats each space as a new delimiter:

java-1.8.0-openjdk-ppc64el     1081       /usr/lib/jvm/java-1.8.0-openjdk-ppc64el

Fix this by using awk, which handles this fine.

Signed-off-by: Anton Blanchard <anton@samba.org>
Reviewed-by: Stephane Eranian <eranian@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1476325243-15788-1-git-send-email-anton@ozlabs.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/jvmti/Makefile