trace-cmd: Use pkg-config instead of python-config

trace-cmd uses python-config to find out which headers
and libraries should be used to link against the Python libraries.
By default, python-config returns paths that are inappropriate for
cross-compilation.

Add PYTHON_VERS to build trace-cmd with python2 or python3

Link: http://lkml.kernel.org/r/1383241182-11162-1-git-send-email-romain.naour@openwide.fr

Acked-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 file changed