Skip to content

Commit eb545a4

Browse files
amadionamhyung
authored andcommitted
tools/rtla: 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-5-amadio@gentoo.org Signed-off-by: Namhyung Kim <namhyung@kernel.org>
1 parent e525eff commit eb545a4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/tracing/rtla/Makefile.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ LIBTRACEFS_MIN_VERSION = 1.6
77

88
define lib_setup
99
$(eval LIB_INCLUDES += $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)"))
10-
$(eval EXTLIBS += -l$(1))
10+
$(eval LDFLAGS += $(shell sh -c "$(PKG_CONFIG) --libs-only-L lib$(1)"))
11+
$(eval EXTLIBS += $(shell sh -c "$(PKG_CONFIG) --libs-only-l lib$(1)"))
1112
endef
1213

1314
$(call feature_check,libtraceevent)

0 commit comments

Comments
 (0)