package/execline: add option to build multicall binary

Since version 2.9.2.0, with another bugfix in 2.9.4.0, execline can
be built as a multicall binary, similar to busybox. According to
the author[1], this results in space savings of 66-87% on Linux.

[1]: https://skarnet.org/software/execline/execline.html

Signed-off-by: J. Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
J. Neuschäfer
2024-08-11 12:01:11 +02:00
committed by Thomas Petazzoni
parent f21db2bd83
commit ef8ed5ccfe
2 changed files with 10 additions and 0 deletions

View File

@@ -10,3 +10,12 @@ config BR2_PACKAGE_EXECLINE
essentially useful inside an execlineb script.
http://skarnet.org/software/execline/
if BR2_PACKAGE_EXECLINE
config BR2_PACKAGE_EXECLINE_MULTICALL
bool "execline multicall binary"
help
Build execline as a multicall binary to save disk space.
endif

View File

@@ -19,6 +19,7 @@ EXECLINE_CONF_OPTS = \
--with-dynlib=$(STAGING_DIR)/lib \
--with-lib=$(STAGING_DIR)/lib/skalibs \
$(if $(BR2_STATIC_LIBS),,--disable-allstatic) \
$(if $(BR2_PACKAGE_EXECLINE_MULTICALL),--enable-multicall,) \
$(SHARED_STATIC_LIBS_OPTS)
define EXECLINE_CONFIGURE_CMDS