]> git.pld-linux.org Git - packages/beignet.git/blame - static_llvm.patch
Release: 1
[packages/beignet.git] / static_llvm.patch
CommitLineData
8373b18b
JK
1Description: Statically link to libllvm
2
3When multiple ICDs are installed, libopencl1 needs to dlopen() them all
4to find out which one works on the available hardware. If they are
5dynamically linked, this leads to them sharing a libllvm, which has
6enough global state that this is likely to error out. (This is a known
7LLVM bug, https://bugs.llvm.org/show_bug.cgi?id=22952 , but currently
8has no real fix.)
9
10Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
11Bug: https://bugs.llvm.org/show_bug.cgi?id=30587
12Bug-Debian: https://bugs.debian.org/852746
13
14--- beignet-1.3.0.orig/CMake/FindLLVM.cmake
15+++ beignet-1.3.0/CMake/FindLLVM.cmake
16@@ -87,11 +87,19 @@ execute_process(
17 OUTPUT_STRIP_TRAILING_WHITESPACE
18 )
19
20+if (LLVM_VERSION_NODOT VERSION_GREATER 38)
21+execute_process(
22+ COMMAND ${LLVM_CONFIG_EXECUTABLE} --libs --link-static
23+ OUTPUT_VARIABLE LLVM_MODULE_LIBS
24+ OUTPUT_STRIP_TRAILING_WHITESPACE
25+)
26+else (LLVM_VERSION_NODOT VERSION_GREATER 38)
27 execute_process(
28 COMMAND ${LLVM_CONFIG_EXECUTABLE} --libs
29 OUTPUT_VARIABLE LLVM_MODULE_LIBS
30 OUTPUT_STRIP_TRAILING_WHITESPACE
31 )
32+endif (LLVM_VERSION_NODOT VERSION_GREATER 38)
33
34 if (LLVM_VERSION_NODOT VERSION_GREATER 34)
35 execute_process(
36
37
This page took 0.253055 seconds and 4 git commands to generate.