Commit eb545a42 authored by Guilherme Amadio's avatar Guilherme Amadio Committed by Namhyung Kim

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: default avatarGuilherme Amadio <amadio@gentoo.org>
Tested-by: default avatarThorsten Leemhuis <linux@leemhuis.info>
Tested-by: default avatarLeo Yan <leo.yan@arm.com>
Acked-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20240712194511.3973899-5-amadio@gentoo.orgSigned-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
parent e525eff7
...@@ -7,7 +7,8 @@ LIBTRACEFS_MIN_VERSION = 1.6 ...@@ -7,7 +7,8 @@ LIBTRACEFS_MIN_VERSION = 1.6
define lib_setup define lib_setup
$(eval LIB_INCLUDES += $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)")) $(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 endef
$(call feature_check,libtraceevent) $(call feature_check,libtraceevent)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment