summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/config-ix.cmake
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2018-11-18 12:13:51 +0000
committerKamil Rytarowski <n54@gmx.com>2018-11-18 12:13:51 +0000
commit83aabf43eacedee77725fee2b6b2d1b625fe1422 (patch)
tree9f15fccec2dcbaceef187239678b3a5340d987f5 /llvm/cmake/config-ix.cmake
parente0f8b9bfc651221ab1a647082b9ec009d9295762 (diff)
downloadbcm5719-llvm-83aabf43eacedee77725fee2b6b2d1b625fe1422.tar.gz
bcm5719-llvm-83aabf43eacedee77725fee2b6b2d1b625fe1422.zip
Swap order of discovering of -ltinfo and -lterminfo
Summary: NetBSD ships with native curses(3) and -ltinfo is a part of ncurses. Set -lterminfo before -ltinfo, as it allows to prioritize native curses libraries. Mixing curses and ncurses does not work well, especially in software built on top of llvm. Original patch by Ryo Onodera (NetBSD) in pkgsrc. Reviewers: labath, dim, mgorny Reviewed By: dim, mgorny Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D54650 llvm-svn: 347156
Diffstat (limited to 'llvm/cmake/config-ix.cmake')
-rw-r--r--llvm/cmake/config-ix.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake
index 18977d9950f..4bf2a9e9112 100644
--- a/llvm/cmake/config-ix.cmake
+++ b/llvm/cmake/config-ix.cmake
@@ -128,7 +128,7 @@ if(NOT LLVM_USE_SANITIZER MATCHES "Memory.*")
endif()
if(LLVM_ENABLE_TERMINFO)
set(HAVE_TERMINFO 0)
- foreach(library tinfo terminfo curses ncurses ncursesw)
+ foreach(library terminfo tinfo curses ncurses ncursesw)
string(TOUPPER ${library} library_suffix)
check_library_exists(${library} setupterm "" HAVE_TERMINFO_${library_suffix})
if(HAVE_TERMINFO_${library_suffix})
OpenPOWER on IntegriCloud