From: Peter Korsgaard <peter@korsgaard.com>
To: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Bernd Kuhls <bernd@kuhls.net>
Subject: Re: [Buildroot] [PATCH] package/libcap: fix static builds
Date: Wed, 03 Dec 2025 20:56:17 +0100 [thread overview]
Message-ID: <87jyz3fify.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20251120204318.814701-1-thomas.petazzoni@bootlin.com> (Thomas Petazzoni via buildroot's message of "Thu, 20 Nov 2025 21:43:17 +0100")
>>>>> "Thomas" == Thomas Petazzoni via buildroot <buildroot@buildroot.org> writes:
> Since libcap has been updated to version 2.77 in Buildroot commit
> 42f2b480a5a81c7443f177bf541632b0fe501720, the build fails for
> statically-linked configurations when the host system doesn't have a
> static version of libc installed:
> /usr/bin/ld: cannot find -lc: No such file or directory
> /usr/bin/ld: have you installed the static version of the c library ?
> This is because the -static flag that is supposed to be used when
> building target code also gets passed to the host compiler... which is
> obviously incorrect and leads to the build failure.
> This issue was introduced by upstream commit
> c3ddf45d9afaab85d3b7db0dc7bfd1aafb8fde50, which was reverted right
> after the 2.77 release in commit
> 542d7d86ecd2129dd5fe7e5b31ba307304f5b319, which we are simply
> backporting here.
> Fixes:
> https://autobuild.buildroot.net/results/f6d/f6dc61a9d57e282691b87a3a8fadcb5d5ea8fd8b/
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ---
> This is IMO an improved version of Bernd's proposal at
> https://lore.kernel.org/buildroot/20251109080011.481333-1-bernd@kuhls.net/
> for two reasons:
> - A clearer/more correct explanation (the issue is not Fedora related)
> - Backport an upstream commit
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2025-12-03 19:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-20 20:43 [Buildroot] [PATCH] package/libcap: fix static builds Thomas Petazzoni via buildroot
2025-12-03 19:56 ` Peter Korsgaard [this message]
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=87jyz3fify.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=bernd@kuhls.net \
--cc=buildroot@buildroot.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.