commit: a31c9aa8de9537fe1918546bd4895c187917eabb Author: Craig Andrews <candrews <AT> gentoo <DOT> org> AuthorDate: Tue Aug 27 13:04:10 2019 +0000 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> CommitDate: Tue Aug 27 13:04:43 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a31c9aa8
dev-libs/rocm-opencl-driver: Include more link libraries Closes: https://bugs.gentoo.org/692404 Package-Manager: Portage-2.3.73, Repoman-2.3.17 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> .../files/rocm-opencl-driver-2.7.0-libraries.patch | 40 ++++++++++++++++++++++ .../rocm-opencl-driver-2.7.0.ebuild | 1 + 2 files changed, 41 insertions(+) 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 index 00000000000..9e2a06aac97 --- /dev/null +++ b/dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.7.0-libraries.patch @@ -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 <[email protected]> +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 diff --git a/dev-libs/rocm-opencl-driver/rocm-opencl-driver-2.7.0.ebuild b/dev-libs/rocm-opencl-driver/rocm-opencl-driver-2.7.0.ebuild index f95628a7cb7..e4e2818a7ed 100644 --- a/dev-libs/rocm-opencl-driver/rocm-opencl-driver-2.7.0.ebuild +++ b/dev-libs/rocm-opencl-driver/rocm-opencl-driver-2.7.0.ebuild @@ -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() {
