summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/perl/package.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/perl/package.py b/var/spack/repos/builtin/packages/perl/package.py
index 5ca5f42492..ad67cae48c 100644
--- a/var/spack/repos/builtin/packages/perl/package.py
+++ b/var/spack/repos/builtin/packages/perl/package.py
@@ -58,6 +58,8 @@ class Perl(Package): # Perl doesn't use Autotools, it should subclass Package
extendable = True
+ depends_on('gdbm')
+
# Installing cpanm alongside the core makes it safe and simple for
# people/projects to install their own sets of perl modules. Not
# having it in core increases the "energy of activation" for doing
@@ -81,7 +83,9 @@ class Perl(Package): # Perl doesn't use Autotools, it should subclass Package
config_args = [
'-des',
- '-Dprefix={0}'.format(prefix)
+ '-Dprefix={0}'.format(prefix),
+ '-Dlocincpth=' + self.spec['gdbm'].prefix.include,
+ '-Dloclibpth=' + self.spec['gdbm'].prefix.lib
]
# Discussion of -fPIC for Intel at: