[PATCH v3 5/5] tools/latency: Use pkg-config in lib_setup of Makefile.config
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: [PATCH v3 5/5] tools/latency: Use pkg-config in lib_setup of Makefile.config
- From: Guilherme Amadio <amadio@xxxxxxxxxx>
- Date: Wed, 17 Jul 2024 19:47:39 +0200
- Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>, Steven Rostedt <rostedt@xxxxxxxxxxx>, Ian Rogers <irogers@xxxxxxxxxx>, Thorsten Leemhuis <linux@xxxxxxxxxxxxx>, Leo Yan <leo.yan@xxxxxxx>, linux-perf-users@xxxxxxxxxxxxxxx, linux-trace-devel@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
- In-reply-to: <20240717174739.186988-1-amadio@gentoo.org>
- References: <20240717123147.17169873@rorschach.local.home> <20240717174739.186988-1-amadio@gentoo.org>
This allows to build against libtraceevent and libtracefs installed
in non-standard locations.
Signed-off-by: Guilherme Amadio <amadio@xxxxxxxxxx>
---
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 :=
define lib_setup
- $(eval EXTLIBS += -l$(1))
$(eval LIB_INCLUDES += $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)"))
+ $(eval LDFLAGS += $(shell sh -c "$(PKG_CONFIG) --libs-only-L lib$(1)"))
+ $(eval EXTLIBS += $(shell sh -c "$(PKG_CONFIG) --libs-only-l lib$(1)"))
endef
$(call feature_check,libtraceevent)
--
2.39.3
[Index of Archives]
[Linux USB Development]
[Linux USB Development]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]