[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 10:55:25 PDT 2017


dim added a comment.

In https://reviews.llvm.org/D34632#790913, @jlpeyton wrote:

> CMake has a variable `CMAKE_DL_LIBS` which I believe contains the information you want. It essentially gets defined to "-ldl" on unices that need it and "" on platforms which don't need it.


Hm, this isn't used in the main LLVM build though.  I basically copied what is done in `cmake/config-ix.cmake` there. But I'll have a look at `CMAKE_DL_LIBS`, I wonder which version of CMake introduced that variable, the documentation doesn't specify it.


Repository:
  rL LLVM

https://reviews.llvm.org/D34632





More information about the Openmp-commits mailing list