On newer systems -ltinfo needs to be explicitly added to the link flags
[pintos-anon] / src / misc / bochs-2.6.2-link-tinfo.patch
1 diff --git i/configure w/configure
2 index be5e0a5..99b2e14 100755
3 --- i/configure
4 +++ w/configure
5 @@ -24739,7 +24739,7 @@ if ${ac_cv_lib_ncurses_mvaddch+:} false; then :
6    $as_echo_n "(cached) " >&6
7  else
8    ac_check_lib_save_LIBS=$LIBS
9 -LIBS="-lncurses  $LIBS"
10 +LIBS="-lncurses -ltinfo $LIBS"
11  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12  /* end confdefs.h.  */
13
14 @@ -24770,7 +24770,7 @@ fi
15  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_mvaddch" >&5
16  $as_echo "$ac_cv_lib_ncurses_mvaddch" >&6; }
17  if test "x$ac_cv_lib_ncurses_mvaddch" = xyes; then :
18 -  GUI_LINK_OPTS_TERM='-lncurses'
19 +  GUI_LINK_OPTS_TERM='-lncurses -ltinfo'
20  fi
21
22    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mvaddch in -ltermlib" >&5