SHA256
6
0
forked from pool/tbb

- Add disable-irml.patch to disable linking to libirml

- Actually update to tarball to 2018_U2 release

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tbb?expand=0&rev=41
This commit is contained in:
Ismail Dönmez 2017-12-21 12:21:29 +00:00 committed by Git OBS Bridge
parent 278712072e
commit f5a3326d97
3 changed files with 22 additions and 0 deletions

13
disable-irml.patch Normal file
View File

@ -0,0 +1,13 @@
Index: tbb-2018_U2/python/setup.py
===================================================================
--- tbb-2018_U2.orig/python/setup.py
+++ tbb-2018_U2/python/setup.py
@@ -71,7 +71,7 @@ _tbb = Extension("tbb._api", ["tbb/api.i
extra_compile_args=compile_flags + tbb_flag,
extra_link_args=tbb_flag,
libraries =(['tbb'] if not use_compiler_tbb else []) +
- (['irml'] if platform.system() == "Linux" else []), # TODO: why do we need this?
+ (['irml'] if platform.system() == "xLinux" else []), # TODO: why do we need this?
library_dirs=[ rundir, # for custom-builds
os.path.join(tbb_root, 'lib', 'intel64', 'gcc4.4'), # for Linux
os.path.join(tbb_root, 'lib'), # for MacOS

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Dec 21 12:20:59 UTC 2017 - idonmez@suse.com
- Add disable-irml.patch to disable linking to libirml
- Actually update to tarball to 2018_U2 release
-------------------------------------------------------------------
Sat Dec 16 15:29:08 UTC 2017 - idonmez@suse.com

View File

@ -30,6 +30,8 @@ Source0: https://github.com/01org/tbb/archive/2018_U2.tar.gz
Patch1: optflags.patch
# PATCH-FIX-OPENSUSE reproducible.patch -- Do not compile build hostname+kernel into binary
Patch2: reproducible.patch
# PATCH-FIX-OPENSUSE disable-irml.patch -- Don't try to link to irml
Patch3: disable-irml.patch
BuildRequires: gcc-c++
BuildRequires: python2-devel
BuildRequires: python3-devel
@ -107,6 +109,7 @@ This package contains the header files needed for development with tbb.
%setup -q -n %{name}-%{rel_ver}
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
make OPTFLAGS="%{optflags}" %{?_smp_mflags} tbb_build_prefix=obj