diff options
Diffstat (limited to 'sys-devel/llvm-roc/files/llvm-roc-5.0.0-linkdl.patch')
-rw-r--r-- | sys-devel/llvm-roc/files/llvm-roc-5.0.0-linkdl.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys-devel/llvm-roc/files/llvm-roc-5.0.0-linkdl.patch b/sys-devel/llvm-roc/files/llvm-roc-5.0.0-linkdl.patch new file mode 100644 index 000000000000..80598c6f990d --- /dev/null +++ b/sys-devel/llvm-roc/files/llvm-roc-5.0.0-linkdl.patch @@ -0,0 +1,11 @@ +LLVMOffloadArch should link libdl to fix undefined symbol 'dlsym' when linking +--- llvm.orig/lib/OffloadArch/offload-arch/CMakeLists.txt ++++ llvm/lib/OffloadArch/offload-arch/CMakeLists.txt +@@ -3,6 +3,7 @@ add_llvm_tool(offload-arch + ${CMAKE_CURRENT_SOURCE_DIR}/offload-arch.cpp + DEPENDS generated-table LLVMOffloadArch + ) ++target_link_libraries(LLVMOffloadArch PRIVATE ${CMAKE_DL_LIBS}) + target_link_libraries(offload-arch PRIVATE LLVMOffloadArch) + + if(CMAKE_HOST_UNIX) |