mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-27 14:41:12 +04:00
perf: fix build failure caused by libelf-zstd feature probe
The perf build currently fails with the following error:
Error: libzstd is required by libelf, please do not set NO_LIBZSTD
This is caused by upstream kernel commit 44b44ffd5dce ("perf build:
Minor improvement for linking libzstd"), which strictly aborts the build
if the `libelf-zstd` feature is detected while `NO_LIBZSTD` is set.
Because OpenWrt explicitly sets `NO_LIBZSTD=1`, this upstream check
triggers a false positive whenever `libzstd` happens to be present in the
build staging directory. The probe only checks for a linkable `-lzstd`
and the `ELFCOMPRESS_ZSTD` macro in `elf.h`; it does not verify if
`libelf` actually requires it (OpenWrt configures elfutils
`--without-zstd`).
Fix this build failure by explicitly passing `feature-libelf-zstd=0` in
MAKE_FLAGS. This disables the auto-detection probe and prevents the
upstream Makefile from incorrectly enforcing a libzstd dependency.
Signed-off-by: Til Kaiser <mail@tk154.de>
Link: https://github.com/openwrt/openwrt/pull/25256
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
1 parent
dee2ff6a77
commit
6bd48701ef
1 file changed
+2
-1
@@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=perf
|
||||
PKG_VERSION:=$(LINUX_VERSION)
|
||||
PKG_RELEASE:=7
|
||||
PKG_RELEASE:=8
|
||||
|
||||
PKG_BUILD_FLAGS:=no-mips16 no-lto
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
@@ -56,6 +56,7 @@ MAKE_FLAGS = \
|
||||
NO_LIBCRYPTO=1 \
|
||||
NO_LIBUNWIND=1 \
|
||||
NO_LIBZSTD=1 \
|
||||
feature-libelf-zstd=0 \
|
||||
NO_LIBCAP=1 \
|
||||
NO_JEVENTS=1 \
|
||||
NO_SHELLCHECK=1 \
|
||||
|
||||
Reference in new issue
Block a user