LLVM detects when ncurses has a separate terminfo library, but linking to it was broken in lldb since b66339575a9b541e67ce5ad2ba7e88da07cf9305 (LLVM14) due to a change of variables. This commit fixes that oversight.
po