From: Charlie Jenkins <thecharlesjenkins@gmail.com>
To: buildroot@buildroot.org
Cc: Charlie Jenkins <thecharlesjenkins@gmail.com>
Subject: [Buildroot] [PATCH] package/ncurses: Enable stripping of progs
Date: Sat, 15 Aug 2026 18:27:12 -0700 [thread overview]
Message-ID: <20260815-ncurses_strip-v1-1-da424b80d70d@gmail.com> (raw)
Commit 2ab611c40ff08bd4a7922456fed22af6953af3b1("ncurses: fix build
failure with ncurses 6.1") added --disable-stripping to the ncurses
build because ncurses started stripping by default but using the host
strip instead of the cross strip.
Enable stripping and change the strip program to $(TARGET_CROSS)strip.
This shrinks the binary sizes of the programs generated by
BR2_PACKAGE_NCURSES_TARGET_PROGS on aarch64 by:
clear: 18k -> 10k
infocmp: 76k -> 62k
tabs: 27k -> 18k
tic: 103k -> 87k
toe: 27k -> 18k
tput: 33k -> 22k
tset: 33k -> 22k
Signed-off-by: Charlie Jenkins <thecharlesjenkins@gmail.com>
---
package/ncurses/ncurses.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/ncurses/ncurses.mk b/package/ncurses/ncurses.mk
index 5e2077500a..e017bacf6e 100644
--- a/package/ncurses/ncurses.mk
+++ b/package/ncurses/ncurses.mk
@@ -31,7 +31,7 @@ NCURSES_CONF_OPTS = \
--enable-const \
--enable-overwrite \
--enable-pc-files \
- --disable-stripping \
+ --with-strip-program=$(TARGET_CROSS)strip \
--with-pkg-config-libdir="/usr/lib/pkgconfig" \
$(if $(BR2_PACKAGE_NCURSES_TARGET_PROGS),,--without-progs) \
--without-manpages
---
base-commit: e389f1b44c54660c7bb5512207a561e684b41595
change-id: 20260815-ncurses_strip-615a30afa120
Best regards,
--
- Charlie
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2026-08-16 1:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-16 1:27 Charlie Jenkins [this message]
2026-08-16 4:20 ` [Buildroot] [PATCH] package/ncurses: Enable stripping of progs Baruch Siach via buildroot
2026-08-16 4:46 ` Charlie Jenkins
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=20260815-ncurses_strip-v1-1-da424b80d70d@gmail.com \
--to=thecharlesjenkins@gmail.com \
--cc=buildroot@buildroot.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