readline: build as a shared library instead of static

This reduces image size by almost 500k (300k compressed)

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2025-08-06 12:42:42 +02:00
parent a8d90323b1
commit 8703a6eda4

View File

@ -13,13 +13,10 @@ PKG_LONGDESC="The GNU Readline library provides a set of functions for use by ap
PKG_BUILD_FLAGS="+pic"
PKG_CONFIGURE_OPTS_TARGET="bash_cv_wcwidth_broken=no \
--disable-shared \
--enable-static \
--enable-shared \
--disable-static \
--with-curses"
post_makeinstall_target() {
# fix static library
sed -i 's/-lreadline/-lreadline -lncursesw/' ${SYSROOT_PREFIX}/usr/lib/pkgconfig/readline.pc
rm -rf ${INSTALL}/usr/share/readline
}