[beignet] 10/12: Dynamically link to libllvm

Rebecca Palmer rnpalmer-guest at moszumanska.debian.org
Wed Mar 18 21:37:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

rnpalmer-guest pushed a commit to branch master
in repository beignet.

commit 99aa592e0c8527ef44afe7524f6df26c5666a37a
Author: Rebecca N. Palmer <rebecca_palmer at zoho.com>
Date:   Wed Mar 18 20:14:34 2015 +0000

    Dynamically link to libllvm
    
    Trying to do libclang as well fails with many undefined symbols,
    probably due to #698247
---
 debian/changelog                 |  1 +
 debian/patches/series            |  1 +
 debian/patches/shared-llvm.patch | 22 ++++++++++++++++++++++
 3 files changed, 24 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 35b3fd5..8e35946 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,7 @@ beignet (1.0.2-1) UNRELEASED; urgency=medium
   * Fix crash if /dev/dri/card0 is inaccessible.
   * Enable standard-compliant precision by default.
   * Simplify LLVM/Clang version selection.
+  * Dynamically link to libllvm.
 
  -- Andreas Beckmann <anbe at debian.org>  Tue, 17 Mar 2015 23:29:43 +0100
 
diff --git a/debian/patches/series b/debian/patches/series
index 05b3c0f..60b31b6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ support-kfreebsd.patch
 reduce-notfound-output.patch
 fail-gracefully-no-hardware.patch
 default-to-full-precision.patch
+shared-llvm.patch
diff --git a/debian/patches/shared-llvm.patch b/debian/patches/shared-llvm.patch
new file mode 100644
index 0000000..ce29960
--- /dev/null
+++ b/debian/patches/shared-llvm.patch
@@ -0,0 +1,22 @@
+Description: Dynamically link to libllvm
+
+Trying to do libclang as well fails with many undefined symbols,
+probably due to #698247
+
+Author: Rebecca Palmer <rebecca_palmer at zoho.com>
+
+--- beignet-1.0.2.orig/CMake/FindLLVM.cmake
++++ beignet-1.0.2/CMake/FindLLVM.cmake
+@@ -93,11 +93,7 @@ execute_process(
+   OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
+ 
+-execute_process(
+-  COMMAND ${LLVM_CONFIG_EXECUTABLE} --libs
+-  OUTPUT_VARIABLE LLVM_MODULE_LIBS
+-  OUTPUT_STRIP_TRAILING_WHITESPACE
+-)
++set(LLVM_MODULE_LIBS "-lLLVM-${LLVM_VERSION}")
+ 
+ if (LLVM_VERSION_NODOT VERSION_GREATER 34)
+ execute_process(

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/beignet.git



More information about the Pkg-opencl-commits mailing list