public inbox for buildroot@busybox.net
 help / color / mirror / Atom feed
From: Andreas Ziegler <br025@umbiko.net>
To: Shubham Chakraborty <chakrabortyshubham66@gmail.com>
Cc: buildroot <buildroot@buildroot.org>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Romain Naour <romain.naour@smile.fr>
Subject: Re: [Buildroot] [PATCH v2] package/icu: fix static linking with icu-uc for musl static toolchains
Date: Wed, 04 Mar 2026 04:35:02 +0000	[thread overview]
Message-ID: <dbd49ae98de7302e5a0cf5394e8c9b05@umbiko.net> (raw)
In-Reply-To: <mailman.37807.1772576641.2009750.buildroot@buildroot.org>

Hi Shubham,

[add Romain Naour -> author of 0003]

The commit message in patch #3 states it addresses the static linking, 
but changes the shared linking statement instead. Since it obviously 
works, probably the commit message is wrong? Or can this patch simply be 
replaced with yours?

(patch related remarks below)

On 2026-03-03 23:51, Shubham Chakraborty wrote:
> 
> During static linking with a C application and libicuuc.a,
> -lstdc++ is required. The previous patch (0003) only addressed the
> shared library case (Libs.private). This patch adds -lstdc++
> to the main Libs line for the static case to fix undefined
> reference errors when linking programs like xmlcatalog (libxml2)
> with musl static toolchains.
        ^^^^
This probably affects not only musl toolchains.

> 
> Upstream: Inactive-Upstream [Buildroot specific]
> Signed-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com>
> 
> ---
> Changes v1 -> v2:
>   - Fixed the malformed patch
>   - Removed unnecessary whitespace
> 
> Signed-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com>
> ---
>  ...atic-linking-with-icu-uc-static-musl.patch | 26 +++++++++++++++++++
>  1 file changed, 26 insertions(+)
>  create mode 100644 
> package/icu/0004-fix-static-linking-with-icu-uc-static-musl.patch
> 
> diff --git 
> a/package/icu/0004-fix-static-linking-with-icu-uc-static-musl.patch 
> b/package/icu/0004-fix-static-linking-with-icu-uc-static-musl.patch
> new file mode 100644
> index 0000000000..e17f6ac775
> --- /dev/null
> +++ b/package/icu/0004-fix-static-linking-with-icu-uc-static-musl.patch
> @@ -0,0 +1,26 @@
> +From 2107f9dfb39eeb6559fb4271c7af8b39aef521ca Mon Sep 17 00:00:00 2001
> +From: Shubham Chakraborty <chakrabortyshubham66@gmail.com>
> +Date: Tue, 3 Mar 2026 10:00:00 +0000
> +Subject: [PATCH] fix static linking with icu-uc (static case)
> +
> +During static linking with a C application and libicuuc.a,
> +-lstdc++ is required. The previous patch (0003) only addressed the
> +shared library case (Libs.private). This patch adds -lstdc++ to the
> +main Libs line for the static case to fix undefined reference
> +errors when linking programs like xmlcatalog (libxml2) with
> +musl toolchains.

The existing 0003-fix-static-linking-with-icu-uc.patch could be replaced 
with a patch that addresses both issues.

> +
> +Upstream: Inactive-Upstream [Buildroot specific]
> +Signed-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com>
> +---
> + source/Makefile.in | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff -git icu.orig/source/Makefile.in icu/source/Makefile.in
> +--- icu.orig/source/Makefile.in
> ++++ icu/source/Makefile.in
> +@@ -281,3 +281,3 @@
> + ifeq ($(ENABLE_SHARED),)
> +-	@echo "Libs:" '-L$${libdir}' "${ICULIBS_UC}" "${ICULIBS_DT}" 
> '$${baselibs}' >> $@
> ++	@echo "Libs:" '-L$${libdir}' "${ICULIBS_UC}" "${ICULIBS_DT}" 
> '$${baselibs}' -lstdc++ >> $@
> + else
> --
> 2.53.0

Kind regards,
Andreas
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

       reply	other threads:[~2026-03-04  4:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.37807.1772576641.2009750.buildroot@buildroot.org>
2026-03-04  4:35 ` Andreas Ziegler [this message]
2026-03-04  6:54   ` [Buildroot] [PATCH v2] package/icu: fix static linking with icu-uc for musl static toolchains Shubham Chakraborty
2026-03-08 11:44     ` Shubham Chakraborty
2026-03-26  7:01       ` Shubham Chakraborty
2026-03-26  8:13         ` Andreas Ziegler
2026-03-03 16:28 [Buildroot] [PATCH] " Shubham Chakraborty
2026-03-03 18:21 ` [Buildroot] [PATCH v2] " Shubham Chakraborty

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=dbd49ae98de7302e5a0cf5394e8c9b05@umbiko.net \
    --to=br025@umbiko.net \
    --cc=buildroot@buildroot.org \
    --cc=chakrabortyshubham66@gmail.com \
    --cc=romain.naour@smile.fr \
    --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