diff options
-rw-r--r-- | var/spack/repos/builtin/packages/lz4/package.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/lz4/package.py b/var/spack/repos/builtin/packages/lz4/package.py index 973250a2f1..ec5dded43f 100644 --- a/var/spack/repos/builtin/packages/lz4/package.py +++ b/var/spack/repos/builtin/packages/lz4/package.py @@ -50,7 +50,10 @@ class Lz4(Package): return "{0}/r{1}.tar.gz".format(url, version.joined) def install(self, spec, prefix): - make() + if sys.platform != "darwin": + make('LIBS=-lrt') # fixes make error on CentOS6 + else: + make() if self.run_tests: make('test') # requires valgrind to be installed make('install', 'PREFIX={0}'.format(prefix)) |