Ticket #8102: readline-ncurses.diff

File readline-ncurses.diff, 1.2 KB (added by Cybjit <cybjit@…>, 4 years ago)

Force linking of ncurses to readline

  • package/libreadline/Makefile

    diff --git a/package/libreadline/Makefile b/package/libreadline/Makefile
    index 90219e5..557c7eb 100644
    a b define Package/libreadline 
    2222  CATEGORY:=Libraries 
    2323  TITLE:=Command lines edition library 
    2424  URL:=http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html 
     25  DEPENDS:=libncurses 
    2526endef 
    2627 
    2728define Package/libreadline/description 
    define Build/Configure 
    3738        $(call Build/Configure/Default, \ 
    3839                --enable-shared \ 
    3940                --enable-static \ 
    40                 --without-curses \ 
    4141        ) 
    4242endef 
    4343 
  • new file package/libreadline/patches/120-curses-link

    diff --git a/package/libreadline/patches/120-curses-link b/package/libreadline/patches/120-curses-link
    new file mode 100644
    index 0000000..20be0c5
    - +  
     1link readline directly to ncurses since it needs symbols from it 
     2 
     3upstream readline does this on purpose (no direct linking), but 
     4it doesn't make much sense in a Linux world 
     5 
     6--- a/support/shobj-conf 
     7+++ b/support/shobj-conf 
     8@@ -40,7 +40,7 @@ SHOBJ_XLDFLAGS= 
     9 SHOBJ_LIBS= 
     10  
     11 SHLIB_XLDFLAGS= 
     12-SHLIB_LIBS= 
     13+SHLIB_LIBS=-lncurses 
     14  
     15 SHLIB_DOT='.' 
     16 SHLIB_LIBPREF='lib'