diff options
-rw-r--r-- | host/include/llvm/Config/config.h | 3 | ||||
-rw-r--r-- | llvm-host-build.mk | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/host/include/llvm/Config/config.h b/host/include/llvm/Config/config.h index 42115e4..8135848 100644 --- a/host/include/llvm/Config/config.h +++ b/host/include/llvm/Config/config.h @@ -472,6 +472,9 @@ /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 +/* Define if the setupterm() function is supported this platform. */ +#define HAVE_TERMINFO 1 + /* Define to 1 if you have the <termios.h> header file. */ #define HAVE_TERMIOS_H 1 diff --git a/llvm-host-build.mk b/llvm-host-build.mk index b40bcbe..8e5bcc0 100644 --- a/llvm-host-build.mk +++ b/llvm-host-build.mk @@ -49,6 +49,11 @@ LOCAL_C_INCLUDES := \ $(LLVM_ROOT_PATH)/host/include \ $(LOCAL_C_INCLUDES) +# Add on ncurses to have support for terminfo +ifneq ($(HOST_OS),windows) +LOCAL_LDLIBS += -lncurses +endif + LOCAL_IS_HOST_MODULE := true LOCAL_32_BIT_ONLY := true |