From: Guilherme Amadio <amadio@gentoo.org>
To: Namhyung Kim <namhyung@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>,
Ian Rogers <irogers@google.com>,
Thorsten Leemhuis <linux@leemhuis.info>,
Leo Yan <leo.yan@arm.com>,
linux-perf-users@vger.kernel.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Guilherme Amadio <amadio@gentoo.org>
Subject: [PATCH v3 3/5] tools/verification: Use pkg-config in lib_setup of Makefile.config
Date: Fri, 12 Jul 2024 21:40:48 +0200 [thread overview]
Message-ID: <20240712194511.3973899-4-amadio@gentoo.org> (raw)
In-Reply-To: <20240712194511.3973899-1-amadio@gentoo.org>
This allows to build against libtraceevent and libtracefs installed
in non-standard locations.
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
---
tools/verification/rv/Makefile.config | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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)
--
2.45.2
next prev parent reply other threads:[~2024-07-12 19:45 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAM9d7ciLGP_w9YYOb-2U2ESg8kQx_knQXuB6_2JZVZ2ktL+bzg@mail.gmail.com>
2024-07-12 19:40 ` [PATCH v3 0/5] perf build: libtraceevent, libtracefs feature check with pkg-config Guilherme Amadio
2024-07-12 19:40 ` [PATCH v3 1/5] perf build: Warn if libtracefs is not found Guilherme Amadio
2024-07-12 19:40 ` [PATCH v3 2/5] tools: Make pkg-config dependency checks usable by other tools Guilherme Amadio
2024-07-12 19:40 ` Guilherme Amadio [this message]
2024-07-12 19:40 ` [PATCH v3 4/5] tools/rtla: Use pkg-config in lib_setup of Makefile.config Guilherme Amadio
2024-07-12 19:40 ` [PATCH v3 5/5] tools/latency: " Guilherme Amadio
2024-07-17 10:13 ` [PATCH v3 0/5] perf build: libtraceevent, libtracefs feature check with pkg-config Thorsten Leemhuis
2024-07-17 16:27 ` Namhyung Kim
2024-07-17 16:31 ` Steven Rostedt
2024-07-17 17:18 ` Guilherme Amadio
2024-07-17 17:47 ` Guilherme Amadio
2024-07-17 17:47 ` [PATCH v3 1/5] perf build: Warn if libtracefs is not found Guilherme Amadio
2024-07-17 17:47 ` [PATCH v3 2/5] tools: Make pkg-config dependency checks usable by other tools Guilherme Amadio
2024-07-17 17:47 ` [PATCH v3 3/5] tools/verification: Use pkg-config in lib_setup of Makefile.config Guilherme Amadio
2024-07-17 17:47 ` [PATCH v3 4/5] tools/rtla: " Guilherme Amadio
2024-07-17 17:47 ` [PATCH v3 5/5] tools/latency: " Guilherme Amadio
2024-07-17 17:57 ` [PATCH v3 0/5] perf build: libtraceevent, libtracefs feature check with pkg-config Steven Rostedt
2024-07-17 20:17 ` Namhyung Kim
2024-07-17 19:47 ` Leo Yan
2024-07-24 20:25 ` Namhyung Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240712194511.3973899-4-amadio@gentoo.org \
--to=amadio@gentoo.org \
--cc=acme@kernel.org \
--cc=irogers@google.com \
--cc=leo.yan@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=linux@leemhuis.info \
--cc=namhyung@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®