]> Git Repo - J-linux.git/commitdiff
tools/latency: Use pkg-config in lib_setup of Makefile.config
authorGuilherme Amadio <[email protected]>
Wed, 17 Jul 2024 17:47:39 +0000 (19:47 +0200)
committerNamhyung Kim <[email protected]>
Wed, 17 Jul 2024 20:15:18 +0000 (13:15 -0700)
This allows to build against libtraceevent and libtracefs installed
in non-standard locations.

Signed-off-by: Guilherme Amadio <[email protected]>
Tested-by: Thorsten Leemhuis <[email protected]>
Tested-by: Leo Yan <[email protected]>
Acked-by: Steven Rostedt (Google) <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
tools/tracing/latency/Makefile.config

index b25e531a1f9575b891997b2a3419f54b0289467d..0fe6b50f029bf7094eaa57cca1b0dee08eecf2e8 100644 (file)
@@ -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)
This page took 0.060671 seconds and 4 git commands to generate.