-ltinfo and -lz causing problems

On a particular system I am trying to link my application to the LLVM library
and it can't find -ltinfo and -lz. The former is part of ncurses (build with term-
info). Building ncurses for this system in user space turns out to be not
straight-forward (haven't succeeded so far).

In LLVM, is there a way to turn the need for -ltinfo and -lz off?


CMake has options LLVM_ENABLE_TERMINFO and LLVM_ENABLE_ZLIB, I believe
if you disable them you'll get LLVM w/o those dependencies, although
haven't tried it.


Configure with the --enable-terminfo=no to disable this dependency. It works at my machine.