oce & trilinos: force rpath on Sierra to avoid issues with load commands size (#2855)

* oce: force rpath on Sierra to avoid issues with load commands size

* trilinos: use rpath on Sierra to avoid load commands limit
This commit is contained in:
Denis Davydov
2017-01-23 22:59:16 +01:00
committed by Todd Gamblin
parent a8e1d78881
commit c76088906e
2 changed files with 13 additions and 3 deletions

View File

@@ -87,7 +87,11 @@ def install(self, spec, prefix):
'-DOCE_OSX_USE_COCOA:BOOL=ON',
])
options.append('-DCMAKE_INSTALL_NAME_DIR:PATH=%s/lib' % prefix)
if '.'.join(platform.mac_ver()[0].split('.')[:2]) == '10.12':
# use @rpath on Sierra due to limit of dynamic loader
options.append('-DCMAKE_MACOSX_RPATH=ON')
else:
options.append('-DCMAKE_INSTALL_NAME_DIR:PATH=%s/lib' % prefix)
cmake('.', *options)
make("install/strip")