summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorBen Morgan <drbenmorgan@users.noreply.github.com>2020-01-28 20:57:25 +0000
committerAdam J. Stewart <ajstewart426@gmail.com>2020-01-28 14:57:25 -0600
commit16da648d03564871ade5fcce09dc45171b706b8c (patch)
treeb0f87d204924896ef2b3f659d9836bb7dce23852 /var
parent48a12c8773295f95caa08a77bb660a7ed221995c (diff)
downloadspack-16da648d03564871ade5fcce09dc45171b706b8c.tar.gz
spack-16da648d03564871ade5fcce09dc45171b706b8c.tar.bz2
spack-16da648d03564871ade5fcce09dc45171b706b8c.tar.xz
spack-16da648d03564871ade5fcce09dc45171b706b8c.zip
intel-tbb: Fix install names on Darwin (#14650)
* intel-tbb: Fix install names on Darwin Intel-TBB's libraries on Darwin are installed with "@rpath" prefixed to their install names. This was found to cause issues building the root package on Darwin due to libtbb not being found when running some of the generated tools linking to it. Follow example from other packages with the same issue and fixup up install names for intel-tbb post install. * intel-tbb: fix flake8 errors
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/intel-tbb/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/intel-tbb/package.py b/var/spack/repos/builtin/packages/intel-tbb/package.py
index d299f7f9fb..2cbda4f5a4 100644
--- a/var/spack/repos/builtin/packages/intel-tbb/package.py
+++ b/var/spack/repos/builtin/packages/intel-tbb/package.py
@@ -7,6 +7,7 @@ from spack import *
import glob
import inspect
import platform
+import sys
class IntelTbb(Package):
@@ -201,3 +202,9 @@ class IntelTbb(Package):
'tbb_config_generator.cmake')
with working_dir(join_path(self.stage.source_path, 'cmake')):
inspect.getmodule(self).cmake(*cmake_args)
+
+ @run_after('install')
+ def darwin_fix(self):
+ # Replace @rpath in ids with full path
+ if sys.platform == 'darwin':
+ fix_darwin_install_name(self.prefix.lib)