dev-libs/rocm-opencl-driver: Include more link libraries
authorCraig Andrews <candrews@gentoo.org>
Tue, 27 Aug 2019 13:04:10 +0000 (09:04 -0400)
committerCraig Andrews <candrews@gentoo.org>
Tue, 27 Aug 2019 13:04:43 +0000 (09:04 -0400)
Closes: https://bugs.gentoo.org/692404
Package-Manager: Portage-2.3.73, Repoman-2.3.17
Signed-off-by: Craig Andrews <candrews@gentoo.org>
dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.7.0-libraries.patch [new file with mode: 0644]
dev-libs/rocm-opencl-driver/rocm-opencl-driver-2.7.0.ebuild

diff --git a/dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.7.0-libraries.patch b/dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.7.0-libraries.patch
new file mode 100644 (file)
index 0000000..9e2a06a
--- /dev/null
@@ -0,0 +1,40 @@
+https://github.com/RadeonOpenCompute/ROCm-OpenCL-Driver/pull/88
+
+From f49ad81e246f1c196cf86f40cf44dfedec0675f1 Mon Sep 17 00:00:00 2001
+From: Mike Lothain <mike@fireburn.co.uk>
+Date: Tue, 27 Aug 2019 11:32:47 +0100
+Subject: [PATCH] Include more link libraries
+
+This is required to get dev-libs/rocm-opencl-driver-2.7.0 compiling for me on Gentoo
+
+I think it might be related to using -Wl,--as-needed in my link flags globally
+---
+ src/driver/CMakeLists.txt | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/driver/CMakeLists.txt b/src/driver/CMakeLists.txt
+index 55ed13f..b93356d 100644
+--- a/src/driver/CMakeLists.txt
++++ b/src/driver/CMakeLists.txt
+@@ -60,9 +60,13 @@ llvm_map_components_to_libnames(llvm_libs
+   AllTargetsDescs
+   AllTargetsDisassemblers
+   AllTargetsInfos
++  BitWriter
+   CodeGen
++  IRReader
++  Linker
+   MC
+   MCDisassembler
++  MCParser
+   Object
+   Symbolize
+   Core
+@@ -83,6 +87,7 @@ target_link_libraries(opencl_driver
+   clangLex
+   clangBasic
+   clangCodeGen
++  clangSerialization
+   lldELF
+   lldCore
+   LLVMDebugInfoDWARF
index f95628a7cb79f45edc3c27096999047d6473a32d..e4e2818a7ed7eb7a443678163b3748287b8ce4f2 100644 (file)
@@ -28,6 +28,7 @@ DEPEND="${RDEPEND}"
 PATCHES=(
        "${FILESDIR}/${PN}-2.6.0-install-correctly.patch"
        "${FILESDIR}/${PN}-2.6.0-install-header.patch"
+       "${FILESDIR}/${PN}-2.7.0-libraries.patch"
 )
 
 src_prepare() {