diff options
-rw-r--r-- | var/spack/repos/builtin/packages/perl/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl/package.py b/var/spack/repos/builtin/packages/perl/package.py index 1759c15d86..ebfa514ce2 100644 --- a/var/spack/repos/builtin/packages/perl/package.py +++ b/var/spack/repos/builtin/packages/perl/package.py @@ -86,6 +86,9 @@ class Perl(Package): # Perl doesn't use Autotools, it should subclass Package variant('shared', default=True, description='Build a shared libperl.so library') + variant('threads', default=True, + description='Build perl with threads support') + resource( name="cpanm", url="http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7042.tar.gz", @@ -133,6 +136,9 @@ class Perl(Package): # Perl doesn't use Autotools, it should subclass Package if '+shared' in spec: config_args.append('-Duseshrplib') + if '+threads' in spec: + config_args.append('-Dusethreads') + return config_args def configure(self, spec, prefix): |