Merge pull request #10325 from HiassofT/le13-readline-shared

readline: build as a shared library instead of static
This commit is contained in:
Christian Hewitt 2025-08-06 15:10:39 +04:00 committed by GitHub
commit fce1dfad70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
}