Skip to content

Commit 1956fde

Browse files
authored
Merge pull request #59 from guyush1/fix-tui
build: fix tui terminal database load paths
2 parents df88d5a + b9a89c9 commit 1956fde

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/compilation/build.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ function build_ncurses() {
277277
>&2 fancy_title "Building libncursesw for $target_arch"
278278

279279
../configure --enable-static "CC=$CC" "CXX=$CXX" "--host=$HOST" \
280-
"CFLAGS=$CFLAGS" "CXXFLAGS=$CXXFLAGS" --prefix="$ncurses_install_dir" "--enable-widec" 1>&2
280+
"CFLAGS=$CFLAGS" "CXXFLAGS=$CXXFLAGS" "--enable-widec" \
281+
--prefix="$ncurses_install_dir" --with-default-terminfo-dir="/usr/share/terminfo" 1>&2
281282
if [[ $? -ne 0 ]]; then
282283
return 1
283284
fi
@@ -287,7 +288,9 @@ function build_ncurses() {
287288
return 1
288289
fi
289290

290-
make -j$(nproc) install 1>&2
291+
# Install the include & library dirs, but not the terminfo database.
292+
# The user is responsible for supplying the terminal database.
293+
make -j$(nproc) install.includes install.libs 1>&2
291294
if [[ $? -ne 0 ]]; then
292295
return 1
293296
fi

0 commit comments

Comments
 (0)