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:

committed by
Todd Gamblin

parent
a8e1d78881
commit
c76088906e
@@ -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")
|
||||
|
Reference in New Issue
Block a user