[PATCH] D43168: Don't use -ldl on BSD
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 11 10:11:24 PST 2018
krytarowski added a comment.
Something along these lines should do the trick:
foreach(lib ${CMAKE_DL_LIBS})
list(APPEND LDFLAGS -l${lib})
endforeach()
`CMAKE_DL_LIBS` can contain 0-2 elements on existing OSes. For NetBSD it's 0, for GNU/Linux it's 1, for Haiku it's 2.
Repository:
rT test-suite
https://reviews.llvm.org/D43168
More information about the llvm-commits
mailing list