diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/intel-tbb/package.py | 7 |
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) |