diff options
| author | Cem Keylan <cem@ckyln.com> | 2020-01-07 00:34:59 +0300 | 
|---|---|---|
| committer | Cem Keylan <cem@ckyln.com> | 2020-01-07 00:34:59 +0300 | 
| commit | 90ae6ac4ba0cce22ac06409d84445c45035ab55f (patch) | |
| tree | c62bbabf31873b281b872f786261de27c2da150d /extra/ncurses/build | |
| parent | 1f29587e038b8e457cb877ff24c81b5d1af69bae (diff) | |
| download | repository-90ae6ac4ba0cce22ac06409d84445c45035ab55f.tar.gz | |
ncurses: Force non-wide ncurses lib to link against ncursesw (See kiss-repo #131)
Diffstat (limited to 'extra/ncurses/build')
| -rwxr-xr-x | extra/ncurses/build | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/ncurses/build b/extra/ncurses/build index 6798aa43..36ad8513 100755 --- a/extra/ncurses/build +++ b/extra/ncurses/build @@ -16,6 +16,18 @@  make  make DESTDIR="$1" install +# Force ncurses to link against wide-character ncurses library. +for lib in ncurses form panel menu; do +    rm -f "$1/usr/lib/lib${lib}.so" +    printf '%s\n' "INPUT(-l${lib}w)" > "$1/usr/lib/lib${lib}.so" +    chmod 755 "$1/usr/lib/lib${lib}.so" +    ln -sf "lib${lib}w.a" "$1/usr/lib/lib${lib}.a" +done + +# Some packages look for libcurses instead of libncurses when building. +printf '%s\n' "INPUT(-lncursesw)" > "$1/usr/lib/libcursesw.so" +ln -s libncurses.so "$1/usr/lib/libcurses.so" +  # These conflict with busybox's.  rm -f "$1/usr/bin/clear"  rm -f "$1/usr/bin/reset"  | 
