From nobody Thu Dec 18 05:58:57 2025 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 51D88184F; Wed, 17 Jul 2024 17:47:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721238455; cv=none; b=NFK2e1lwXdbP+R6crByvGWw8qbOLmHlff7oZ1nzzND17jftVykzFFRcCNAlOJTbgltybPXY+DDduW4UtBfmrEqQ8cEV3xG5Un8Mf1y8ouClsKKkv4pCo4eOBODgwVoPt1zggNfG5sHHUn6ZPQpgC4HqNOEHQO7Kwlfwq3R/3h1M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721238455; c=relaxed/simple; bh=XKhi33Gj+rTeznBbcTvdphoSH65g3sdeypaiVMD2GmM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=r8UCiLIVZD/PHlTA77xC7ubFi6b3UaqN+grzN8+qo0A7IcHsh0xBPQrUC3UD2povh8tdgjG+7QQqNbe1huVeG7LwZVMXNNcLgt7/TOLhxdKrvUSmdGVNfl7zSbECxrXGYKk7Jv/YCFyGqBooDp/EQP9A3NSJDO3gpuxs2gO9PHE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org From: Guilherme Amadio To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Steven Rostedt , Ian Rogers , Thorsten Leemhuis , Leo Yan , linux-perf-users@vger.kernel.org, linux-trace-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/5] perf build: Warn if libtracefs is not found Date: Wed, 17 Jul 2024 19:47:35 +0200 Message-Id: <20240717174739.186988-2-amadio@gentoo.org> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240717174739.186988-1-amadio@gentoo.org> References: <20240717123147.17169873@rorschach.local.home> <20240717174739.186988-1-amadio@gentoo.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by: Guilherme Amadio Acked-by: Steven Rostedt (Google) Tested-by: Leo Yan --- tools/perf/Makefile.config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index a4829b6532d8..44f010b9f562 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -1206,6 +1206,8 @@ ifneq ($(NO_LIBTRACEEVENT),1) LIBTRACEFS_VERSION_3 :=3D $(word 3, $(subst ., ,$(LIBTRACEFS_VERSION))) LIBTRACEFS_VERSION_CPP :=3D $(shell expr $(LIBTRACEFS_VERSION_1) \* 25= 5 \* 255 + $(LIBTRACEFS_VERSION_2) \* 255 + $(LIBTRACEFS_VERSION_3)) CFLAGS +=3D -DLIBTRACEFS_VERSION=3D$(LIBTRACEFS_VERSION_CPP) + else + $(warning libtracefs is missing. Please install libtracefs-dev/libtrac= efs-devel) endif endif =20 --=20 2.39.3 From nobody Thu Dec 18 05:58:57 2025 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 232C4184F; Wed, 17 Jul 2024 17:47:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721238460; cv=none; b=jWfUxTIe2nrp/9+Sv6h38tcCUvzXjhfVdOFkq0KKH9rQuDUCW9J7jhOun4FGGFTSEcpaMm/W41oNi+uan0c3eJhaJg+j0TfiRK9A5nyU2XKtEwvY2QEb4MR8MUUNUIv5V9/i2ypIBjCS9JxJZ02OPgCeyTfwWbONA9vIKIF1e28= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721238460; c=relaxed/simple; bh=REOSf7/rugtH2yYk+s2F5MVinrpY3CBfXRrXHiL+0CU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=eFehMSHyIgi70czPizF0Tqsd2dV0USnweo6WszopPqUyD0puA0x1dRfHHeu89sIC0CSlJRZLo+0AZ+ZGpqKDV9eNjuhpqccwLy1ju0+bKFVdK0ef6MluhkM2Ge6ka0Esf0VSne3ZscZawTRY+71nzNR00Z9WuMMMaoQkZ7TZiMU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org From: Guilherme Amadio To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Steven Rostedt , Ian Rogers , Thorsten Leemhuis , Leo Yan , linux-perf-users@vger.kernel.org, linux-trace-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/5] tools: Make pkg-config dependency checks usable by other tools Date: Wed, 17 Jul 2024 19:47:36 +0200 Message-Id: <20240717174739.186988-3-amadio@gentoo.org> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240717174739.186988-1-amadio@gentoo.org> References: <20240717123147.17169873@rorschach.local.home> <20240717174739.186988-1-amadio@gentoo.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Other tools, in tools/verification and tools/tracing, make use of libtraceevent and libtracefs as dependencies. This allows setting up the feature check flags for them as well. Signed-off-by: Guilherme Amadio Acked-by: Steven Rostedt (Google) Tested-by: Leo Yan --- tools/build/Makefile.feature | 18 ++++++++++++++++++ tools/perf/Makefile.config | 11 +++-------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/tools/build/Makefile.feature b/tools/build/Makefile.feature index 1e2ab148d5db..e1900abd44f6 100644 --- a/tools/build/Makefile.feature +++ b/tools/build/Makefile.feature @@ -149,6 +149,24 @@ FEATURE_DISPLAY ?=3D \ # FEATURE_GROUP_MEMBERS-libbfd =3D libbfd-liberty libbfd-liberty-z =20 +# +# Declare list of feature dependency packages that provide pkg-config file= s. +# +FEATURE_PKG_CONFIG ?=3D \ + libtraceevent \ + libtracefs + +feature_pkg_config =3D $(eval $(feature_pkg_config_code)) +define feature_pkg_config_code + FEATURE_CHECK_CFLAGS-$(1) :=3D $(shell $(PKG_CONFIG) --cflags $(1) 2>/de= v/null) + FEATURE_CHECK_LDFLAGS-$(1) :=3D $(shell $(PKG_CONFIG) --libs $(1) 2>/dev= /null) +endef + +# Set FEATURE_CHECK_(C|LD)FLAGS-$(package) for packages using pkg-config. +ifneq ($(PKG_CONFIG),) + $(foreach package,$(FEATURE_PKG_CONFIG),$(call feature_pkg_config,$(pack= age))) +endif + # Set FEATURE_CHECK_(C|LD)FLAGS-all for all FEATURE_TESTS features. # If in the future we need per-feature checks/flags for features not # mentioned in this list we need to refactor this ;-). diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 44f010b9f562..c896babf7a74 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -182,20 +182,15 @@ endif FEATURE_CHECK_CFLAGS-libzstd :=3D $(LIBZSTD_CFLAGS) FEATURE_CHECK_LDFLAGS-libzstd :=3D $(LIBZSTD_LDFLAGS) =20 +# for linking with debug library, run like: +# make DEBUG=3D1 PKG_CONFIG_PATH=3D/opt/libtraceevent/(lib|lib64)/pkgconfig + ifneq ($(NO_LIBTRACEEVENT),1) ifeq ($(call get-executable,$(PKG_CONFIG)),) $(error Error: $(PKG_CONFIG) needed by libtraceevent is missing on thi= s system, please install it) endif endif =20 -# for linking with debug library, run like: -# make DEBUG=3D1 PKG_CONFIG_PATH=3D/opt/libtraceevent/(lib|lib64)/pkgconfig -FEATURE_CHECK_CFLAGS-libtraceevent :=3D $(shell $(PKG_CONFIG) --cflags lib= traceevent 2>/dev/null) -FEATURE_CHECK_LDFLAGS-libtraceevent :=3D $(shell $(PKG_CONFIG) --libs libt= raceevent 2>/dev/null) - -FEATURE_CHECK_CFLAGS-libtracefs :=3D $(shell $(PKG_CONFIG) --cflags libtra= cefs 2>/dev/null) -FEATURE_CHECK_LDFLAGS-libtracefs :=3D $(shell $(PKG_CONFIG) --libs libtrac= efs 2>/dev/null) - FEATURE_CHECK_CFLAGS-bpf =3D -I. -I$(srctree)/tools/include -I$(srctree)/t= ools/arch/$(SRCARCH)/include/uapi -I$(srctree)/tools/include/uapi # include ARCH specific config -include $(src-perf)/arch/$(SRCARCH)/Makefile --=20 2.39.3 From nobody Thu Dec 18 05:58:57 2025 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1685183068; Wed, 17 Jul 2024 17:47:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721238465; cv=none; b=SSELQQs9qdvq70/dQErHahX/VSAH1Gy8fwlUU/S9BD+ypLUOiCMB+M3/Us30ixBSSA/qlVZKuFf53EZMVjrfy9u2u7c0qfRM4jS1OMeyb/XbZUvUL4zLn7PCS4Y/zL/l28cFvro2P3EDECJGKH2SGk5+jcjOpz5DZ9Pd+RUBMbY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721238465; c=relaxed/simple; bh=6/SwzYneDqAqtHBAhM6STX6T4kayzevAfpGlR0GaVNI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WiTXsIuLiFls0iTv1k5ZmvQuxUjrnScR1c5ARvDW96ktD6/P9THap2rhuuYzSPFxTvRgAKWjSUh4GLJMTOQsCe5eRQQ0A+lLriludj9UQ37xkjq38LBISr8sPptxQRDT7ZAgF/opwOJEPPNQsyWJTEMQBSwoGYo8idwXqLdJR0A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org From: Guilherme Amadio To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Steven Rostedt , Ian Rogers , Thorsten Leemhuis , Leo Yan , linux-perf-users@vger.kernel.org, linux-trace-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/5] tools/verification: Use pkg-config in lib_setup of Makefile.config Date: Wed, 17 Jul 2024 19:47:37 +0200 Message-Id: <20240717174739.186988-4-amadio@gentoo.org> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240717174739.186988-1-amadio@gentoo.org> References: <20240717123147.17169873@rorschach.local.home> <20240717174739.186988-1-amadio@gentoo.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This allows to build against libtraceevent and libtracefs installed in non-standard locations. Signed-off-by: Guilherme Amadio Acked-by: Steven Rostedt (Google) Tested-by: Leo Yan --- tools/verification/rv/Makefile.config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/verification/rv/Makefile.config b/tools/verification/rv/= Makefile.config index 6d4ba77847b6..066302230eb2 100644 --- a/tools/verification/rv/Makefile.config +++ b/tools/verification/rv/Makefile.config @@ -7,7 +7,8 @@ LIBTRACEFS_MIN_VERSION =3D 1.3 =20 define lib_setup $(eval LIB_INCLUDES +=3D $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)")) - $(eval EXTLIBS +=3D -l$(1)) + $(eval LDFLAGS +=3D $(shell sh -c "$(PKG_CONFIG) --libs-only-L lib$(1)")) + $(eval EXTLIBS +=3D $(shell sh -c "$(PKG_CONFIG) --libs-only-l lib$(1)")) endef =20 $(call feature_check,libtraceevent) --=20 2.39.3 From nobody Thu Dec 18 05:58:57 2025 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF9BC18307E; Wed, 17 Jul 2024 17:47:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721238470; cv=none; b=PaCKtcfIJw7sp4a+xUPmRvAwXkENv0pxIcPQm4PDr9J00Qx6v085O0gGNOrcUiAP/TIKE7LnF6VorFRs0mF6UJBHqjT6fjEM6VxH/k0ZBC9LHMY9saxg/pVnP92pM+3V/FKA+zjPOuW1oz0xiSRVM+gDKyi9gLiwnBcz30wI8vU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721238470; c=relaxed/simple; bh=cent/n7Mw+o9U9YiXp/nqx+p32wB8mggolpZnMWrh6U=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aLKOxCG903kyIyE+zgkZw32VgURYU9kTZUV3aoO6V5/9KACn4F0ZHt57sXb5LYmgmKAB3HjqV9wFeTp+YpLm3Xdo2dMkKk12WklRPh5cl9tRli6csjxBnBSIjcGgjUrb66xs+IoqOtCn82D5Y4A919W2yuVKLFInSHVstfKemGE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org From: Guilherme Amadio To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Steven Rostedt , Ian Rogers , Thorsten Leemhuis , Leo Yan , linux-perf-users@vger.kernel.org, linux-trace-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 4/5] tools/rtla: Use pkg-config in lib_setup of Makefile.config Date: Wed, 17 Jul 2024 19:47:38 +0200 Message-Id: <20240717174739.186988-5-amadio@gentoo.org> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240717174739.186988-1-amadio@gentoo.org> References: <20240717123147.17169873@rorschach.local.home> <20240717174739.186988-1-amadio@gentoo.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This allows to build against libtraceevent and libtracefs installed in non-standard locations. Signed-off-by: Guilherme Amadio Acked-by: Steven Rostedt (Google) Tested-by: Leo Yan --- tools/tracing/rtla/Makefile.config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/tracing/rtla/Makefile.config b/tools/tracing/rtla/Makefi= le.config index 0b7ecfb30d19..5f8c286712d4 100644 --- a/tools/tracing/rtla/Makefile.config +++ b/tools/tracing/rtla/Makefile.config @@ -7,7 +7,8 @@ LIBTRACEFS_MIN_VERSION =3D 1.6 =20 define lib_setup $(eval LIB_INCLUDES +=3D $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)")) - $(eval EXTLIBS +=3D -l$(1)) + $(eval LDFLAGS +=3D $(shell sh -c "$(PKG_CONFIG) --libs-only-L lib$(1)")) + $(eval EXTLIBS +=3D $(shell sh -c "$(PKG_CONFIG) --libs-only-l lib$(1)")) endef =20 $(call feature_check,libtraceevent) --=20 2.39.3 From nobody Thu Dec 18 05:58:57 2025 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32B8C181D07; Wed, 17 Jul 2024 17:47:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721238474; cv=none; b=Q0/4pmxRhtmSuyrtJ2xg26SLBCJxLCFeqrM92SYPnpd3VY+0A5fpVaEtxotf3lUb/6YLvtQ1I4Kjt730P7iOWpV8unOPvcx1vRf3hpfHsyhj2KRJ4TJX6bM+hhDfiK5S01E2GF2dmQjLdPC6LPFm1zS2pbg4k/qA+j4O9xjcvT0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721238474; c=relaxed/simple; bh=jRDjt3t0PUjgUbdNF16mDtrjvQ93i6nAoQY7s082Iy8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=miV68yxE5YJWwyYNkI8GKzt8qPEQ+sfjda/3d2x17jHA++O6njjUwnaML010qDnGtCTuVXgvGThCdZBXXCiuoDKq/90yeIWu6+Ro0nbavJ2dLzu6Hn+wrnZzKLJFF9bOvNQpz7om1XLzp9IMfbXwxbjG/FIinL8PljmohjXIlac= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org From: Guilherme Amadio To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Steven Rostedt , Ian Rogers , Thorsten Leemhuis , Leo Yan , linux-perf-users@vger.kernel.org, linux-trace-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 5/5] tools/latency: Use pkg-config in lib_setup of Makefile.config Date: Wed, 17 Jul 2024 19:47:39 +0200 Message-Id: <20240717174739.186988-6-amadio@gentoo.org> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240717174739.186988-1-amadio@gentoo.org> References: <20240717123147.17169873@rorschach.local.home> <20240717174739.186988-1-amadio@gentoo.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This allows to build against libtraceevent and libtracefs installed in non-standard locations. Signed-off-by: Guilherme Amadio Acked-by: Steven Rostedt (Google) Tested-by: Leo Yan --- tools/tracing/latency/Makefile.config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/tracing/latency/Makefile.config b/tools/tracing/latency/= Makefile.config index b25e531a1f95..0fe6b50f029b 100644 --- a/tools/tracing/latency/Makefile.config +++ b/tools/tracing/latency/Makefile.config @@ -3,8 +3,9 @@ STOP_ERROR :=3D =20 define lib_setup - $(eval EXTLIBS +=3D -l$(1)) $(eval LIB_INCLUDES +=3D $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)")) + $(eval LDFLAGS +=3D $(shell sh -c "$(PKG_CONFIG) --libs-only-L lib$(1)")) + $(eval EXTLIBS +=3D $(shell sh -c "$(PKG_CONFIG) --libs-only-l lib$(1)")) endef =20 $(call feature_check,libtraceevent) --=20 2.39.3