Devicetree Compiler
 help / color / mirror / Atom feed
From: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
To: "Marc-André Lureau"
	<marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Simon Glass <sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>,
	Devicetree Compiler
	<devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH 1/2] Revert "libfdt: Add static lib to meson build"
Date: Tue, 4 Jan 2022 10:47:48 +1100	[thread overview]
Message-ID: <YdOLJEVoJRAx5Ojg@yekko> (raw)
In-Reply-To: <CAMxuvayq16QG29M7zyOd_bYVH+=Xyu8D-XTyrxuFSVYF+ipXbw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1913 bytes --]

On Mon, Jan 03, 2022 at 02:22:32PM +0400, Marc-André Lureau wrote:
> Hi Simon
> 
> On Mon, Jan 3, 2022 at 2:18 PM Simon Glass <sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> wrote:
> >
> > Hi Marc-André,
> >
> > On Mon, 3 Jan 2022 at 03:04, Marc-André Lureau
> > <marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> > >
> > > Hi Simon
> > >
> > > On Mon, Jan 3, 2022 at 1:59 PM Simon Glass <sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> wrote:
> > > >
> > > > Hi Marc-André,
> > > >
> > > > On Mon, 3 Jan 2022 at 00:39, <marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> > > > >
> > > > > From: Marc-André Lureau <marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> > > > >
> > > > > You can build the static library by running meson configure
> > > > > -Ddefault_library=both or static.
> > > > >
> > > > > This reverts commit 5216f3f1bbb70aef463b6cd78dbbb0f4c4c71606.
> > > >
> > > > What is the reason for the revert?
> > >
> > > Did you miss the comment above?
> >
> > I think you alluded to it but it is good to be explicit as to the motivation.
> >
> > >
> > > There is no need to have a static_library() to build a static library.
> > > library() handles both kinds, you just have to specify with the
> > > -Ddefault_library option what you want.
> >
> > But don't we want the standard build to produce both static and
> > dynamic libraries?
> 
> If we wanted that (this is not the most common option these days), the
> recommended way is to set project() default_options.

Hmm.. the existing make behaviour is to build both libraries by
default, so I'd prefer to keep that with meson unless there's a
compelling reason not to.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2022-01-03 23:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-03  7:38 [PATCH 0/2] Some build fixes marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA
     [not found] ` <20220103073855.1468799-1-marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2022-01-03  7:38   ` [PATCH 1/2] Revert "libfdt: Add static lib to meson build" marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA
     [not found]     ` <20220103073855.1468799-2-marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2022-01-03  9:59       ` Simon Glass
     [not found]         ` <CAPnjgZ2+SdumGaCp7TTvJ-WtC4=VdH6mbvAL+q6Hx3oRoCtjEw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-03 10:04           ` Marc-André Lureau
     [not found]             ` <CAMxuvazDvsbMekArEngSECHrE0EzzLccZtPVUj44SZ0s-=NwqA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-03 10:17               ` Simon Glass
     [not found]                 ` <CAPnjgZ1tK09j8b+kAyZKLjnB9fNY=3yP4e=CeSyPTJmfauLbkg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-03 10:22                   ` Marc-André Lureau
     [not found]                     ` <CAMxuvayq16QG29M7zyOd_bYVH+=Xyu8D-XTyrxuFSVYF+ipXbw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-03 23:47                       ` David Gibson [this message]
2022-01-03  7:38   ` [PATCH 2/2] setup.py: fix out of tree build marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA
     [not found]     ` <20220103073855.1468799-3-marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2022-01-03 23:49       ` David Gibson
2022-01-04 18:12       ` Rob Herring

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=YdOLJEVoJRAx5Ojg@yekko \
    --to=david-xt8fgy+axnrb3ne2bgzf6laj5h9x9tb+@public.gmane.org \
    --cc=devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.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