summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory L. Lee <lee218@llnl.gov>2015-10-08 08:12:30 -0700
committerGregory L. Lee <lee218@llnl.gov>2015-10-08 08:12:30 -0700
commit5dd39bfca56e984089236f4383d3ad348e1b0a54 (patch)
treead9f5d2e1f782864a158ed9719486c559f87b844
parent58c53738900db52615062387165e1e8ba9801362 (diff)
downloadspack-5dd39bfca56e984089236f4383d3ad348e1b0a54.tar.gz
spack-5dd39bfca56e984089236f4383d3ad348e1b0a54.tar.bz2
spack-5dd39bfca56e984089236f4383d3ad348e1b0a54.tar.xz
spack-5dd39bfca56e984089236f4383d3ad348e1b0a54.zip
bug fix for github issue 122
-rw-r--r--var/spack/packages/bzip2/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/packages/bzip2/package.py b/var/spack/packages/bzip2/package.py
index fbd5869a53..d88336664d 100644
--- a/var/spack/packages/bzip2/package.py
+++ b/var/spack/packages/bzip2/package.py
@@ -22,8 +22,10 @@ class Bzip2(Package):
bzip2_exe = join_path(prefix.bin, 'bzip2')
install('bzip2-shared', bzip2_exe)
- for libfile in glob('libbz2.so*'):
+ for i, libfile in enumerate(glob('libbz2.so*')):
install(libfile, prefix.lib)
+ if i == 0:
+ symlink(join_path(prefix.lib, libfile), join_path(prefix.lib, 'libbz2.so'))
bunzip2 = join_path(prefix.bin, 'bunzip2')
remove(bunzip2)