[libclc] 108/291: Fix build with LLVM 3.5
Andreas Beckmann
anbe at moszumanska.debian.org
Tue Sep 8 10:53:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch master
in repository libclc.
commit 799014b12be1dae5d82c75a5828f361316b45bf7
Author: Aaron Watry <awatry at gmail.com>
Date: Sun Dec 29 16:39:53 2013 +0000
Fix build with LLVM 3.5
Reviewed-by: Aaron Watry <awatry at gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@198167 91177308-0d34-0410-b5e6-96231b3b80d8
---
configure.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/configure.py b/configure.py
index 1c6929f..2038b11 100755
--- a/configure.py
+++ b/configure.py
@@ -10,6 +10,7 @@ version_patch = 1;
from optparse import OptionParser
import os
+import string
from subprocess import *
import sys
@@ -62,8 +63,13 @@ def llvm_config(args):
print "Please ensure that llvm-config is in your $PATH, or use --with-llvm-config."
sys.exit(1)
+llvm_version = string.split(string.replace(llvm_config(['--version']), 'svn', ''), '.')
+llvm_system_libs = ''
+if (int(llvm_version[0]) == 3 and int(llvm_version[1]) >= 5) or int(llvm_version[0]) > 3:
+ llvm_system_libs = llvm_config(['--system-libs'])
llvm_bindir = llvm_config(['--bindir'])
llvm_core_libs = llvm_config(['--libs', 'core', 'bitreader', 'bitwriter']) + ' ' + \
+ llvm_system_libs + ' ' + \
llvm_config(['--ldflags'])
llvm_cxxflags = llvm_config(['--cxxflags']) + ' -fno-exceptions -fno-rtti'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git
More information about the Pkg-opencl-commits
mailing list