Re: [PATCH v1 1/6] perf: build: Setup PKG_CONFIG_LIBDIR for cross compilation

From: Leo Yan
Date: Fri Jun 07 2024 - 08:50:41 EST


Hi Namhyung,

On 6/6/24 18:28, Namhyung Kim wrote:

--- a/tools/build/feature/Makefile
+++ b/tools/build/feature/Makefile
@@ -82,7 +82,19 @@ FILES= \

FILES := $(addprefix $(OUTPUT),$(FILES))

-PKG_CONFIG ?= $(CROSS_COMPILE)pkg-config
+PKG_CONFIG ?= pkg-config
+
+ifdef CROSS_COMPILE
+ ifndef PKG_CONFIG_LIBDIR

Can we do that only if the cross-compile-pkg-config is not available?

Makes sense for me. I will update for this.

Thanks,
Leo