alglib: fix on Darwin (#7534)

This commit is contained in:
Denis Davydov 2018-03-20 14:33:14 +01:00 committed by Adam J. Stewart
parent 6458b15bb1
commit ed4640c75b

View File

@ -25,6 +25,7 @@
from spack import *
import glob
import os
import sys
import shutil
@ -59,3 +60,9 @@ def install(self, spec, prefix):
headers = glob.glob('*.h')
for h in headers:
install(h, prefix.include)
@run_after('install')
def fix_darwin_install(self):
# The shared libraries are not installed correctly on Darwin:
if sys.platform == 'darwin':
fix_darwin_install_name(self.spec.prefix.lib)