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
This commit is contained in:
parent
48a12c8773
commit
16da648d03
1 changed files with 7 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
import glob
|
import glob
|
||||||
import inspect
|
import inspect
|
||||||
import platform
|
import platform
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
class IntelTbb(Package):
|
class IntelTbb(Package):
|
||||||
|
@ -201,3 +202,9 @@ def install(self, spec, prefix):
|
||||||
'tbb_config_generator.cmake')
|
'tbb_config_generator.cmake')
|
||||||
with working_dir(join_path(self.stage.source_path, 'cmake')):
|
with working_dir(join_path(self.stage.source_path, 'cmake')):
|
||||||
inspect.getmodule(self).cmake(*cmake_args)
|
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)
|
||||||
|
|
Loading…
Reference in a new issue