From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Martin Wetterwald <martin@wetterwald.eu>
Cc: Vadim Kochan <vadim4j@gmail.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/tinysshd: Fix static-only build
Date: Fri, 26 Jul 2024 09:19:23 +0200 [thread overview]
Message-ID: <20240726091923.12123d17@windsurf> (raw)
In-Reply-To: <20240725173709.1087549-1-martin@wetterwald.eu>
Hello Martin,
On Thu, 25 Jul 2024 19:37:09 +0200
Martin Wetterwald <martin@wetterwald.eu> wrote:
> When using BR2_STATIC_LIBS=y, tinysshd's build was successful, but the
> binary didn't work on the final target: this is because a dynamically
> linked ELF was produced, on a target having no dynamic loader at all.
>
> Using $(TARGET_CONFIGURE_OPTS) propagates all the options and not only
> "CC", resulting in a correct static binary able to run on the target.
>
> Without the patch:
>
> > tinysshd: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV),
> > dynamically linked, interpreter /lib/ld-musl-armhf.so.1, stripped
>
> With the patch:
>
> > tinysshd: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV),
> > statically linked, stripped
>
> Signed-off-by: Martin Wetterwald <martin@wetterwald.eu>
> ---
> package/tinyssh/tinyssh.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks for your contribution, I've applied your patch, after fixing
some small details:
- package/tinyssh instead of package/tinysshd as the commit prefix.
Indeed, the package name is tinyssh, not tinyssd
- remove the capital letter in "Fix", as we try to have consistency
between our commit titles, and the vast majority of them don't
capitalize the first word
- add a "Fixes:" tag that points to which commit is being fixed by your
change, so that we know if your fix needs to be backported to our LTS
branch or not
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-07-26 7:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-25 17:37 [Buildroot] [PATCH 1/1] package/tinysshd: Fix static-only build Martin Wetterwald
2024-07-26 7:19 ` Thomas Petazzoni via buildroot [this message]
2024-08-31 21:48 ` Peter Korsgaard
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=20240726091923.12123d17@windsurf \
--to=buildroot@buildroot.org \
--cc=martin@wetterwald.eu \
--cc=thomas.petazzoni@bootlin.com \
--cc=vadim4j@gmail.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.