summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/perl/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/perl/package.py b/var/spack/repos/builtin/packages/perl/package.py
index 60a93164b8..a4e2d18a9b 100644
--- a/var/spack/repos/builtin/packages/perl/package.py
+++ b/var/spack/repos/builtin/packages/perl/package.py
@@ -282,10 +282,10 @@ class Perl(Package): # Perl doesn't use Autotools, it should subclass Package
# This is how we tell perl the locations of bzip and zlib.
env.set('BUILD_BZIP2', 0)
env.set('BZIP2_INCLUDE', spec['bzip2'].prefix.include)
- env.set('BZIP2_LIB', spec['bzip2'].prefix.lib)
+ env.set('BZIP2_LIB', spec['bzip2'].libs.directories[0])
env.set('BUILD_ZLIB', 0)
env.set('ZLIB_INCLUDE', spec['zlib'].prefix.include)
- env.set('ZLIB_LIB', spec['zlib'].prefix.lib)
+ env.set('ZLIB_LIB', spec['zlib'].libs.directories[0])
@run_after('install')
def filter_config_dot_pm(self):