unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob d6ed3aef93e8b9ac0f62742daa4825cd9625e974 606 bytes (raw)
name: gnu/packages/patches/llvm-roc-5.0.0-linkdl.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
Taken from the Gentoo patch:
https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-devel/llvm-roc/files/llvm-roc-5.0.0-linkdl.patch

LLVMOffloadArch should link libdl to fix undefined symbol 'dlsym' when linking

--- a/llvm/lib/OffloadArch/offload-arch/CMakeLists.txt
+++ b/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)

debug log:

solving d6ed3aef93 ...
found d6ed3aef93 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).