diff options
author | Sam Lunt <[email protected]> | 2020-01-31 12:11:23 -0600 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-04-03 10:03:44 -0300 |
commit | b9c9ce4e598e012ca7c1813fae2f4d02395807de (patch) | |
tree | 20227fbcb18ce52fe33e139b74763c2e25e5caf6 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
parent | 27486a85cb65bd258a9a213b3e95bdf8c24fd781 (diff) |
perf tools: Support Python 3.8+ in Makefile
Python 3.8 changed the output of 'python-config --ldflags' to no longer
include the '-lpythonX.Y' flag (this apparently fixed an issue loading
modules with a statically linked Python executable). The libpython
feature check in linux/build/feature fails if the Python library is not
included in FEATURE_CHECK_LDFLAGS-libpython variable.
This adds a check in the Makefile to determine if PYTHON_CONFIG accepts
the '--embed' flag and passes that flag alongside '--ldflags' if so.
tools/perf is the only place the libpython feature check is used.
Signed-off-by: Sam Lunt <[email protected]>
Tested-by: He Zhe <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions