summaryrefslogtreecommitdiffstats
path: root/tools/verification
diff options
context:
space:
mode:
authorGuilherme Amadio <amadio@gentoo.org>2024-07-12 21:40:48 +0200
committerNamhyung Kim <namhyung@kernel.org>2024-07-17 22:14:51 +0200
commite525eff7cc334e1c7450c6bc952bfc35b9d74500 (patch)
treed27c250823cd067f7b362d21c574245b77cca12f /tools/verification
parenttools: Make pkg-config dependency checks usable by other tools (diff)
downloadlinux-e525eff7cc334e1c7450c6bc952bfc35b9d74500.tar.xz
linux-e525eff7cc334e1c7450c6bc952bfc35b9d74500.zip
tools/verification: Use pkg-config in lib_setup of Makefile.config
This allows to build against libtraceevent and libtracefs installed in non-standard locations. Signed-off-by: Guilherme Amadio <amadio@gentoo.org> Tested-by: Thorsten Leemhuis <linux@leemhuis.info> Tested-by: Leo Yan <leo.yan@arm.com> Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org> Link: https://lore.kernel.org/r/20240712194511.3973899-4-amadio@gentoo.org Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/verification')
-rw-r--r--tools/verification/rv/Makefile.config3
1 files changed, 2 insertions, 1 deletions
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 = 1.3
define lib_setup
$(eval LIB_INCLUDES += $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)"))
- $(eval EXTLIBS += -l$(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)