Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
fix perf build #2505
perf crosscompilation should be performed like for linux kernel, i.e. by specifying ARCH and CROSS_COMPILE. The initial version accidentally dropped LDFLAGS, add these back in.
On x86_64 the upstream Makefile adds -llzma to the libunwind libs, patch this out as we don't build lzma in LE.
Also cleanup libunwind package.mk so that headers and static libs are only installed to sysroot
properly set ARCH, CROSS_COMPILE, LDFLAGS and JOBS. This fixes build failure on aarch64 / kernel 4.4 and feature detection issues due to LTO warnings on 32bit Rockchip builds. Signed-off-by: Matthias Reichl <email@example.com>
The reason for the size change of the perf binary on rebuilds was that gdb polluted the sysroot with it's own version of libbfd, overwriting libbfd headers and includes from binutils.
I've added a gdb commit to stop this nonsense and install gdb only to the target, keeping the sysroot intact