From 7d15445b18adc65a53b6d566bdcd0e2a6bf40a66 Mon Sep 17 00:00:00 2001 From: lancethepants Date: Wed, 22 May 2019 14:11:55 -0600 Subject: [PATCH] Make sure ncurses symlinks match version number. --- scripts/base.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/base.sh b/scripts/base.sh index 0a9bef58a..e1ee11607 100755 --- a/scripts/base.sh +++ b/scripts/base.sh @@ -488,6 +488,8 @@ fi ########### ################################################################# NCURSES_VERSION=6.1 +M=${NCURSES_VERSION%.*} +m=${NCURSES_VERSION#*.} cd $SRC/ncurses @@ -528,8 +530,8 @@ fi if [ ! -f .linked ]; then ln -sf libncursesw.a $DEST/lib/libncurses.a ln -sf libncursesw.so $DEST/lib/libncurses.so - ln -sf libncursesw.so.6 $DEST/lib/libncurses.so.6 - ln -sf libncursesw.so.6.0 $DEST/lib/libncurses.so.6.0 + ln -sf libncursesw.so.$M $DEST/lib/libncurses.so.$M + ln -sf libncursesw.so.$M.$m $DEST/lib/libncurses.so.$M.$m ln -sf libncurses++w.a $DEST/lib/libncurses++.a ln -sf libncursesw_g.a $DEST/lib/libncurses_g.a ln -sf libncursesw.a $DEST/lib/libcurses.a