diff options
| author | 2026-10-01 16:48:10 +0100 | |
|---|---|---|
| committer | 2026-10-02 18:19:35 +0200 | |
| commit | 2ed38aa8a52d3e245a9f71b98825ad7f77956d50 (patch) | |
| tree | c121dd087759ea20c991ed58b86142dfdcdebed1 /scripts/Makefile.thinlto | |
| parent | perf trace: Increase TRACE_AUG_MAX_BUF to 128 and document beauty_map encoding (diff) | |
perf python: Track linked libraries as extension dependencies
Since the Python extension switched to linking perf libraries, setup.py
only lists util/python.c as a source. The libraries are supplied through
LDFLAGS, which setuptools does not consider when deciding whether the
extension needs to be rebuilt.
When a library changes, make invokes setup.py, but setuptools can skip
the build and the recipe copies the stale cached extension back into
python/. This leaves perf and its Python module running different
versions of the same code.
Pass the linked library paths to setup.py and declare them as Extension
dependencies so that library changes trigger a rebuild. Include
EXTRA_PERFLIBS in the shared library list so that both make and
setuptools track those inputs as well, preserving the existing linker
order.
Fixes: 9dabf4003423c8d3 ("perf python: Switch module to linking libraries from building source")
Reviewed-by: Ian Rogers <irogers@google.com>
Assisted-by: Codex:GPT-6-Astra
Signed-off-by: James Clark <james.clark@linaro.org>
[ Applied manually to address some fuzz ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
