[PATCH] D80492: Avoid linking libdl unless needed
Martin Storsjö via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 28 11:34:14 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0073c293a401: [clang] Avoid linking libdl unless needed (authored by thieta, committed by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80492/new/
https://reviews.llvm.org/D80492
Files:
clang/tools/libclang/CMakeLists.txt
Index: clang/tools/libclang/CMakeLists.txt
===================================================================
--- clang/tools/libclang/CMakeLists.txt
+++ clang/tools/libclang/CMakeLists.txt
@@ -66,9 +66,8 @@
endif ()
endif ()
-find_library(DL_LIBRARY_PATH dl)
-if (DL_LIBRARY_PATH)
- list(APPEND LIBS dl)
+if (HAVE_LIBDL)
+ list(APPEND LIBS ${CMAKE_DL_LIBS})
endif()
option(LIBCLANG_BUILD_STATIC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80492.266970.patch
Type: text/x-patch
Size: 409 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200528/fbfeec03/attachment-0001.bin>
More information about the cfe-commits
mailing list