mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-18 07:23:59 +00:00
libreadlne: create symlinks for .so
This commit is contained in:
parent
0ab7c18f48
commit
d06838b449
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=readline
|
PKG_NAME:=readline
|
||||||
PKG_VERSION:=8.2
|
PKG_VERSION:=8.2
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=@GNU/readline
|
PKG_SOURCE_URL:=@GNU/readline
|
||||||
@ -48,9 +48,13 @@ endef
|
|||||||
HOST_CONFIGURE_ARGS += --disable-shared --with-pic
|
HOST_CONFIGURE_ARGS += --disable-shared --with-pic
|
||||||
CONFIGURE_ARGS += --with-curses --disable-install-examples
|
CONFIGURE_ARGS += --with-curses --disable-install-examples
|
||||||
|
|
||||||
|
HOST_CONFIGURE_VARS += \
|
||||||
|
bash_cv_termcap_lib=libncurses
|
||||||
|
|
||||||
CONFIGURE_VARS += \
|
CONFIGURE_VARS += \
|
||||||
bash_cv_wcwidth_broken=no \
|
bash_cv_wcwidth_broken=no \
|
||||||
bash_cv_func_sigsetjmp=yes \
|
bash_cv_func_sigsetjmp=yes \
|
||||||
|
bash_cv_termcap_lib=libncursesw
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC)
|
TARGET_CFLAGS += $(FPIC)
|
||||||
HOST_CFLAGS += $(FPIC)
|
HOST_CFLAGS += $(FPIC)
|
||||||
@ -65,7 +69,7 @@ endef
|
|||||||
|
|
||||||
define Package/libreadline/install
|
define Package/libreadline/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.so.* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.so* $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call HostBuild))
|
$(eval $(call HostBuild))
|
||||||
|
20
package/libs/readline/patches/010-ncursesw-first.patch
Normal file
20
package/libs/readline/patches/010-ncursesw-first.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
--- a/configure
|
||||||
|
+++ b/configure
|
||||||
|
@@ -7305,6 +7305,9 @@ TERMCAP_DEP=
|
||||||
|
elif test $bash_cv_termcap_lib = libncurses; then
|
||||||
|
TERMCAP_LIB=-lncurses
|
||||||
|
TERMCAP_DEP=
|
||||||
|
+elif test $bash_cv_termcap_lib = libncursesw; then
|
||||||
|
+TERMCAP_LIB=-lncursesw
|
||||||
|
+TERMCAP_DEP=
|
||||||
|
elif test $bash_cv_termcap_lib = libc; then
|
||||||
|
TERMCAP_LIB=
|
||||||
|
TERMCAP_DEP=
|
||||||
|
@@ -7340,6 +7343,7 @@ case "$TERMCAP_LIB" in
|
||||||
|
-ltinfo) TERMCAP_PKG_CONFIG_LIB=tinfo ;;
|
||||||
|
-lcurses) TERMCAP_PKG_CONFIG_LIB=ncurses ;;
|
||||||
|
-lncurses) TERMCAP_PKG_CONFIG_LIB=ncurses ;;
|
||||||
|
+-lncursesw) TERMCAP_PKG_CONFIG_LIB=ncursesw ;;
|
||||||
|
-ltermcap) TERMCAP_PKG_CONFIG_LIB=termcap ;;
|
||||||
|
*) TERMCAP_PKG_CONFIG_LIB=termcap ;;
|
||||||
|
esac
|
Loading…
Reference in New Issue
Block a user