diff options
author | Ben Boeckel <mathstuf@users.noreply.github.com> | 2016-04-17 01:15:07 -0400 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-04-17 07:15:07 +0200 |
commit | 63bade7a0c7350681dd29ce877f2a9fad679d67d (patch) | |
tree | 7317e47d489af7fc99e19a5ea3e6409e6b4b0345 /var | |
parent | 375de085e271f2926ef2381a2e22f40bd5541177 (diff) | |
download | spack-63bade7a0c7350681dd29ce877f2a9fad679d67d.tar.gz spack-63bade7a0c7350681dd29ce877f2a9fad679d67d.tar.bz2 spack-63bade7a0c7350681dd29ce877f2a9fad679d67d.tar.xz spack-63bade7a0c7350681dd29ce877f2a9fad679d67d.zip |
metis: fix OS X install (#764)
Without this, the binaries use relative paths for loading which causes
them to not be found when running binaries. Not sure why the existing
hack wasn't working, but this fixes it the proper way.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/metis/package.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/metis/package.py b/var/spack/repos/builtin/packages/metis/package.py index 41e3ebb429..b05f23a3dc 100644 --- a/var/spack/repos/builtin/packages/metis/package.py +++ b/var/spack/repos/builtin/packages/metis/package.py @@ -136,6 +136,7 @@ class Metis(Package): source_directory = self.stage.source_path options.append('-DGKLIB_PATH:PATH={metis_source}/GKlib'.format(metis_source=source_directory)) + options.append('-DCMAKE_INSTALL_NAME_DIR:PATH=%s/lib' % prefix) if '+shared' in spec: options.append('-DSHARED:BOOL=ON') @@ -184,7 +185,3 @@ class Metis(Package): fs = glob.glob(join_path(source_directory,'GKlib',"*.h")) for f in fs: install(f, GKlib_dist) - - # The shared library is not installed correctly on Darwin; correct this - if (sys.platform == 'darwin') and ('+shared' in spec): - fix_darwin_install_name(prefix.lib) |