aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xextra/ncurses/build12
-rw-r--r--extra/ncurses/version2
2 files changed, 13 insertions, 1 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"
diff --git a/extra/ncurses/version b/extra/ncurses/version
index 1143f417..64ca26e6 100644
--- a/extra/ncurses/version
+++ b/extra/ncurses/version
@@ -1 +1 @@
-6.1 1
+6.1 2