[Openmp-commits] [PATCH] D34632: Check for libdl, and only use it when available

Dimitry Andric via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Jun 26 12:16:58 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL306319: Only use libdl when it is available (authored by dim).

Repository:
  rL LLVM

https://reviews.llvm.org/D34632

Files:
  openmp/trunk/libomptarget/CMakeLists.txt


Index: openmp/trunk/libomptarget/CMakeLists.txt
===================================================================
--- openmp/trunk/libomptarget/CMakeLists.txt
+++ openmp/trunk/libomptarget/CMakeLists.txt
@@ -95,7 +95,7 @@
   # Build libomptarget library with libdl dependency.
   add_library(omptarget SHARED ${src_files})
   target_link_libraries(omptarget
-    dl
+    ${CMAKE_DL_LIBS}
     "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exports")
   
   # Install libomptarget under the lib destination folder.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34632.104006.patch
Type: text/x-patch
Size: 519 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20170626/64aa9119/attachment.bin>


More information about the Openmp-commits mailing list