From: Steven Rostedt <rostedt@goodmis.org>
To: Daniel Wagner <dwagner@suse.de>
Cc: linux-trace-devel@vger.kernel.org
Subject: Re: [PATCH v5] libtracefs: Add initial support for meson
Date: Wed, 4 Jan 2023 12:44:14 -0500 [thread overview]
Message-ID: <20230104124414.727545d4@gandalf.local.home> (raw)
In-Reply-To: <20230104171939.huntmzkbpy5tvrjg@carbon.lan>
On Wed, 4 Jan 2023 18:19:39 +0100
Daniel Wagner <dwagner@suse.de> wrote:
> On Wed, Jan 04, 2023 at 11:09:16AM -0500, Steven Rostedt wrote:
> This also doesn't build the static library libtracefs.a.
> >
> > We have environments that we need to build trace-cmd statically. As
> > trace-cmd depends on libtraceevent and libtracefs, that means both need a
> > static library as well.
>
> Configure the build with
>
> 'meson setup .build --default-library=both'
>
> Though, we could add libtraceevent and libracefs as subprojects to trace-cmd
> which avoids all the hassle to install libtraceevent and libtracefs
> independenly from trace-cmd. It also takes care of all the dependency
> setup. Basically with
>
>
> 'meson setup .build --wrap-mode=forcefallback'
>
> in trace-cmd meson would download, setup and build libtraceevent and libtracefs
> within the trace-cmd build. This is makes the whole development process
> between these project way smoother. And if you would configure the build
> with
I'm not sure that would make it easier for me. I work on each separately.
And I don't always want them linked together, but sometimes I do! To
control what gets linked to trace-cmd, I use dynamic libraries, and only
install what I want to use there. That is, they really are three different
projects! I use libtracefs on several other tools, not just trace-cmd.
>
> 'meson setup .build --wrap-mode=forcefallback --default-library=static'
>
> would staticly link all subprojects into the trace-cmd binary.
>
> I haven't added this part to the initial mesonizing of the projects. Keep
> things simple to begin with.
For the environment that we require a static build, that isn't really
needed. It would only make the initial setup easier, but that's a one time
deal. After that, everything is automated.
-- Steve
next prev parent reply other threads:[~2023-01-04 17:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-28 8:29 [PATCH v5] libtracefs: Add initial support for meson Daniel Wagner
2023-01-04 16:09 ` Steven Rostedt
2023-01-04 17:19 ` Daniel Wagner
2023-01-04 17:44 ` Steven Rostedt [this message]
2023-01-05 7:18 ` Daniel Wagner
2023-01-05 13:51 ` Steven Rostedt
2023-01-05 14:41 ` Daniel Wagner
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=20230104124414.727545d4@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=dwagner@suse.de \
--cc=linux-trace-devel@vger.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;
as well as URLs for NNTP newsgroup(s).