diff options
author | Sinan <sbulutw@gmail.com> | 2018-05-31 13:24:38 -0700 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2018-05-31 15:24:38 -0500 |
commit | 59633d5c958883ebf1a738ad1b8cd36480043dbf (patch) | |
tree | e86559cfd2fafbb74d4193b122cea9aeb5826330 /var | |
parent | 939eedcb37487728af068d9aad201034da2c21b1 (diff) | |
download | spack-59633d5c958883ebf1a738ad1b8cd36480043dbf.tar.gz spack-59633d5c958883ebf1a738ad1b8cd36480043dbf.tar.bz2 spack-59633d5c958883ebf1a738ad1b8cd36480043dbf.tar.xz spack-59633d5c958883ebf1a738ad1b8cd36480043dbf.zip |
fix missing -lrt for Centos6, issue: #7552 (#7597)
* fix missing -lrt for Centos6, issue: #7552
* fix missing -lrt for Centos6, issue: #7552
* fix using make() as opposed to patching
* remove patch, as the fix is provided withing package.py instead
* make flake8 happy
Diffstat (limited to 'var')
-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)) |