forked from OSchip/llvm-project
[clang] Fix libdl linking for libclang in standalone mode
Differential Revision: https://reviews.llvm.org/D81385
This commit is contained in:
parent
38a8217931
commit
a41af6e41e
|
@ -68,6 +68,11 @@ endif ()
|
||||||
|
|
||||||
if (HAVE_LIBDL)
|
if (HAVE_LIBDL)
|
||||||
list(APPEND LIBS ${CMAKE_DL_LIBS})
|
list(APPEND LIBS ${CMAKE_DL_LIBS})
|
||||||
|
elseif (CLANG_BUILT_STANDALONE)
|
||||||
|
find_library(DL_LIBRARY_PATH dl)
|
||||||
|
if (DL_LIBRARY_PATH)
|
||||||
|
list(APPEND LIBS dl)
|
||||||
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
option(LIBCLANG_BUILD_STATIC
|
option(LIBCLANG_BUILD_STATIC
|
||||||
|
|
Loading…
Reference in New Issue