From nobody Wed Dec 17 12:20:44 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 563BC4963C; Fri, 12 Jul 2024 19:45:39 +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=1720813541; cv=none; b=P/7pMl+bq+Gt3NhCrP/tvXMsGicQq17N1fx5kfJfDglM07nNOf+/W8oeekXdneiuMTG/YU4fhkVIrP+Nboc5QSTCGArV7cPFsxJwXZq9vQYfVR1E5kcLqUGyjnt2YSKUHGmqtJDS75Uhu5mkmgkcdkR9gP9FWxS2vzZeagyIIzA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720813541; c=relaxed/simple; bh=Z04U1ZXfxS+bYK5z/ONreK5ewQ50GaYHpXHXQORZkrs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H9cSc5t8mZFKsXIifCg/B9wNHHFNEpisUR3brQkAzyFR8vskTCvaO/JZlIpk8kZZs4b33M9Wu2hXFIDIR/wu3DNYGAtna5qvsLm8rRLvScmSDPmCxpf96Tqp96s6T79/DyDJ5qEJd+kxdEJbL5QIfZ7QG4deTywYo6nT8JrfWnc= 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 , Ian Rogers , Thorsten Leemhuis , Leo Yan , linux-perf-users@vger.kernel.org, Linux Kernel Mailing List , Guilherme Amadio Subject: [PATCH v3 4/5] tools/rtla: Use pkg-config in lib_setup of Makefile.config Date: Fri, 12 Jul 2024 21:40:49 +0200 Message-ID: <20240712194511.3973899-5-amadio@gentoo.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240712194511.3973899-1-amadio@gentoo.org> References: <20240712194511.3973899-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 --- 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.45.2