readline: fix static library linking via pkg-config

This commit is contained in:
Lukas Rusak 2022-05-17 09:20:35 -07:00
parent 4137da30e5
commit 4c3f264dc1
No known key found for this signature in database
GPG Key ID: 8C310C807E7393A3

View File

@ -18,5 +18,8 @@ PKG_CONFIGURE_OPTS_TARGET="bash_cv_wcwidth_broken=no \
--with-curses" --with-curses"
post_makeinstall_target() { 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 rm -rf ${INSTALL}/usr/share/readline
} }