ldmd2 requires -lpthread and -lcurses, too.

This is a change to the LLVM CMake files from LLVM 3.5.
This commit is contained in:
Kai Nacke
2013-12-19 19:16:08 +01:00
parent 14ae04c573
commit 62137ca489

View File

@@ -495,7 +495,7 @@ set_target_properties(${LDMD_EXE} PROPERTIES
# use symbols from libdl, ..., so LLVM_LDFLAGS must come _after_ them in the
# command line. Maybe this could be improved using library groups, at least with
# GNU ld.
target_link_libraries(${LDMD_EXE} ${LLVM_LIBRARIES} "${LLVM_LDFLAGS}")
target_link_libraries(${LDMD_EXE} ${LLVM_LIBRARIES} ${PTHREAD_LIBS} ${TERMINFO_LIBS} "${LLVM_LDFLAGS}")
#
# Test and runtime targets. Note that enable_testing() is order-sensitive!