[PATCH] [libcxx] Add support for building and testing with an ABI library not along linker paths

Ed Maste emaste at freebsd.org
Sat Aug 30 18:52:40 PDT 2014


================
Comment at: lib/CMakeLists.txt:48
@@ +47,3 @@
+if ("${LIBCXX_CXX_ABI_LIBNAME}" STREQUAL "libcxxrt" AND
+    "${CMAKE_SYSTEM}" MATCHES "Linux")
+  append_if(libraries LIBCXX_HAS_DL_LIB dl)
----------------
danalbert wrote:
> What about FreeBSD? If the BSDs need it too, I think you actually just want to remove the second half of this conditional and let append_if work out this detail.
libdl isn't needed on FreeBSD, but that case is already handled by append_if, is it not?

http://reviews.llvm.org/D5038






More information about the cfe-commits mailing list