package/ncurses: Enable stripping of progs
PATCH 1/1 package/ncurses: Enable stripping of progs
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
--- package/ncurses/ncurses.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/ncurses/ncurses.mk +1 -1
@@ -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,
Signature · 6 lines
- Charlie _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Charlie,
Quoted 9 lines · Charlie Jenkins
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_PROGSon aarch64 by:
Quoted 7 lines
clear: 18k -> 10k
infocmp: 76k -> 62k
tabs: 27k -> 18k
tic: 103k -> 87k
toe: 27k -> 18k
tput: 33k -> 22k
tset: 33k -> 22k
The 'target-finalize' target defined in top level Makefile should strip all target binaries. Lookup STRIPCMD in top Makefile.
Doesn't that work for ncurses binaries?
baruch
Quoted 25 lines
Signed-off-by Charlie Jenkins <[email protected]>--- package/ncurses/ncurses.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/ncurses/ncurses.mk +1
-2@@ -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-615a30afa120Best regards,
Signature · 7 lines
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- [email protected] - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildrootQuoted 20 lines · Baruch Siach
Hi Charlie,
Quoted 9 lines · Charlie Jenkins
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_PROGSon aarch64 by:Quoted 7 lines
clear: 18k -> 10k
infocmp: 76k -> 62k
tabs: 27k -> 18k
tic: 103k -> 87k
toe: 27k -> 18k
tput: 33k -> 22k
tset: 33k -> 22k
Quoted 4 lines
The 'target-finalize' target defined in top level
Makefileshould strip all target binaries. Lookup STRIPCMD in topMakefile.Doesn't that work for ncurses binaries?
That's a silly oversight on my part, thank you! I was looking at this Makefile and the outputs but didn't look at the final outputs generated by this step, oops.
- Charlie
Quoted 23 lines
baruch
Quoted 20 lines
Signed-off-by Charlie Jenkins <[email protected]>--- package/ncurses/ncurses.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/ncurses/ncurses.mk +1
-1@@ -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
Quoted 10 lines
Quoted 5 lines
---
base-commit:e389f1b44c54660c7bb5512207a561e684b41595
change-id: 20260815-ncurses_strip-615a30afa120Best regards,
Signature · 3 lines
~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - [email protected] - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot