From 0b82d9eb0b09747b28a32b1a0e97f1b263a5f6e4 Mon Sep 17 00:00:00 2001 From: Dragon Raja <122138258+RetroBoyCN@users.noreply.github.com> Date: Mon, 19 Oct 2026 11:30:35 +0800 Subject: [PATCH] package/xxhash: fix libxxhash.pc prefix to /usr The libxxhash.pc file is generated during the build step, not during install. At that point PREFIX was not passed, so it defaulted to /usr/local, resulting in an incorrect pkg-config file pointing to /usr/local instead of /usr. Pass PREFIX=/usr in XXHASH_BUILD_CMDS so that the .pc file is generated with the correct prefix from the start. --- package/xxhash/xxhash.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/xxhash/xxhash.mk b/package/xxhash/xxhash.mk index 51bf6ce8558..fc2084c8780 100644 --- a/package/xxhash/xxhash.mk +++ b/package/xxhash/xxhash.mk @@ -31,7 +31,7 @@ endif define XXHASH_BUILD_CMDS $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \ - MOREFLAGS=-DXXH_NO_INLINE_HINTS $(XXHASH_TARGETS) + PREFIX=/usr MOREFLAGS=-DXXH_NO_INLINE_HINTS $(XXHASH_TARGETS) endef define XXHASH_INSTALL_STAGING_CMDS