diff options
author | Jean-Paul Pelteret <jppelteret@gmail.com> | 2016-05-09 14:23:07 +0200 |
---|---|---|
committer | Jean-Paul Pelteret <jppelteret@gmail.com> | 2016-05-09 14:23:07 +0200 |
commit | 970196d825237b96fdf27ecdbeb07bcf49580fff (patch) | |
tree | cead16f74d472d96bda51f7993665b9b23ca9a67 | |
parent | ea408cc0d0d2d961be3c342494db87d8018bec9d (diff) | |
download | spack-970196d825237b96fdf27ecdbeb07bcf49580fff.tar.gz spack-970196d825237b96fdf27ecdbeb07bcf49580fff.tar.bz2 spack-970196d825237b96fdf27ecdbeb07bcf49580fff.tar.xz spack-970196d825237b96fdf27ecdbeb07bcf49580fff.zip |
GMsh: Fix binary linking against its own libraries
GMsh binary now links against full path name of libraries. This fixes
problems, such as `dyld: Library not loaded: libGmsh.2.11.dylib`, when
running the executable.
-rw-r--r-- | var/spack/repos/builtin/packages/gmsh/package.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gmsh/package.py b/var/spack/repos/builtin/packages/gmsh/package.py index eb2981bba2..5f659c56df 100644 --- a/var/spack/repos/builtin/packages/gmsh/package.py +++ b/var/spack/repos/builtin/packages/gmsh/package.py @@ -62,7 +62,9 @@ class Gmsh(Package): build_directory = join_path(self.stage.path, 'spack-build') source_directory = self.stage.source_path - + + options.append('-DCMAKE_INSTALL_NAME_DIR:PATH=%s/lib' % prefix) + # Prevent GMsh from using its own strange directory structure on OSX options.append('-DENABLE_OS_SPECIFIC_INSTALL=OFF') |