From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: lancethepants <lancethepants@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/musl-fts: always build static library
Date: Sat, 27 Aug 2022 15:38:54 +0200 [thread overview]
Message-ID: <20220827133854.GW37358@scaer> (raw)
In-Reply-To: <20220824202617.21650-1-lancethepants@gmail.com>
Lance, All,
Please, be sure that the From header matches your SoB line; evne though
your email matches, the From lacks your real name.
On 2022-08-24 14:26 -0600, lancethepants spake thusly:
> musl-fts provides features left out of musl that are included in other libc's.
>
> This patch always enables building the static library so
> that it is always present with musl's libc.a when enabled.
>
> For those that are using buildroot for toolchain creation
> and want to static link, then libfts.a is available.
Sorry, I am not sure I totally understood what you meant here.
If I understood correctly, you want to use Buildroot, to generate a
musl-based toolchain, that you can distribute. You want that that
toolchain be usable to do both shared and static linking. Right?
Then you want to be able to use that toolchain to build some software
that uses fts(3). And so, since you want to allow static-only linking,
you want that toolchain to also include the fts library as a static
library.
However, this is, in my opinion, problematic for a few reasons.
First, including musl-ftx under the toolchain denomination is wrong; it
no longer is a toolchain, but more of an SDK. Including musl-fts will
for example mean that that toolchain will not be reusable as an external
toolchain for Buildroot, because then musl-fts in the toolchain will
come conflicting with musl-fts the package in Buildroot.
Second, if you need both static and shared libraries, why don't you
build your SDK with BR2_SHARED_STATIC_LIBS to begin with? With that, we
pass both --enable-static --enable-shared when building autotools
packages (and musl-fts is an autotools package); see package/Makefile.in
lines 423-424.
Third, what makes musl-fts different from other libraries that may be
included in the SDK? If your external software needs other libraries,
and you do not have them in the SDK, then you'll have to build those
libraries first, and point your software buildsystem to use them; why
can't you do the same for musl-fts?
> Signed-off-by: Lance Fredrickson <lancethepants@gmail.com>
> Signed-off-by: lancethepants <lancethepants@gmail.com>
That second SoB line is incorrect, as it has no real-name part; it is
also superfluous, because it is the same email part.
Regards,
Yann E. MORIN.
> ---
> package/musl-fts/musl-fts.mk | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/package/musl-fts/musl-fts.mk b/package/musl-fts/musl-fts.mk
> index dd7f1f9ea0..fcad9c3d75 100644
> --- a/package/musl-fts/musl-fts.mk
> +++ b/package/musl-fts/musl-fts.mk
> @@ -12,5 +12,6 @@ MUSL_FTS_LICENSE_FILES = COPYING
> # pkg-config needed for autoreconf
> MUSL_FTS_DEPENDENCIES = host-pkgconf
> MUSL_FTS_INSTALL_STAGING = YES
> +MUSL_FTS_CONF_OPTS += --enable-static
>
> $(eval $(autotools-package))
> --
> 2.20.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2022-08-27 13:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-24 20:26 [Buildroot] [PATCH 1/1] package/musl-fts: always build static library lancethepants
2022-08-27 13:38 ` Yann E. MORIN [this message]
2022-08-29 14:52 ` Lance Fredrickson
2022-08-29 15:17 ` Yann E. MORIN
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=20220827133854.GW37358@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@buildroot.org \
--cc=lancethepants@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
/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