This is an archive of the discontinued LLVM Phabricator instance.

Detect libdl from cmake variable
AbandonedPublic

Authored by raj.khem on Dec 11 2019, 11:05 AM.

Details

Reviewers
mehdi_amini
Summary

This helps in getting right settings for libdl irrespective of platform
it also fixes build with -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON

Fixes

tools/clang/tools/libclang/CMakeFiles/libclang.dir/CIndexer.cpp.o: In function clang::CIndexer::getClangResourcesPath[abi:cxx11]()': 2019-12-06T06:04:39.2987601Z | CIndexer.cpp:(.text._ZN5clang8CIndexer21getClangResourcesPathB5cxx11Ev+0x8b): undefined reference to dladdr'

Diff Detail

Event Timeline

raj.khem created this revision.Dec 11 2019, 11:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 11 2019, 11:05 AM
raj.khem edited reviewers, added: mehdi_amini; removed: espindola.Dec 28 2019, 10:36 AM