[PATCH v1 0/6] perf: build: Fix cross compilation

From: Leo Yan
Date: Tue Jun 04 2024 - 05:33:10 EST


This patch series fixes cross compilation issues.

The first two patches address the package configuration issue. It sets
the package path so the compiler can find the architecture's package.
The patch 03 sets the Python configuration path and renames the .so to
reflect the build target.

The last three patches fix the static build failures. Patch 04 is to fix
the issue caused by newer version's elfutils, and the last patches fix
the building failure for feature detecting binaries.

This patch series is tested for building perf on x86_64 host for Arm64
target.

Leo Yan (6):
perf: build: Setup PKG_CONFIG_LIBDIR for cross compilation
perf: build: Append libtraceevent path in PKG_CONFIG_LIBDIR
perf: build: Set Python configuration for cross compilation
perf: build: Only link libebl.a for old libdw
perf: build: Link lib 'lzma' for static build
perf: build: Link lib 'zstd' for static build

tools/build/feature/Makefile | 42 +++++++++++++++++++++++++++---------
tools/perf/Makefile.config | 25 +++++++++++++++++++--
tools/perf/Makefile.perf | 15 ++++++++++++-
3 files changed, 69 insertions(+), 13 deletions(-)

--
2.34.1