perl: adding threads variant (#8142)
This commit is contained in:
parent
457dadaac8
commit
c06174a081
1 changed files with 6 additions and 0 deletions
|
@ -86,6 +86,9 @@ class Perl(Package): # Perl doesn't use Autotools, it should subclass Package
|
||||||
variant('shared', default=True,
|
variant('shared', default=True,
|
||||||
description='Build a shared libperl.so library')
|
description='Build a shared libperl.so library')
|
||||||
|
|
||||||
|
variant('threads', default=True,
|
||||||
|
description='Build perl with threads support')
|
||||||
|
|
||||||
resource(
|
resource(
|
||||||
name="cpanm",
|
name="cpanm",
|
||||||
url="http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7042.tar.gz",
|
url="http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7042.tar.gz",
|
||||||
|
@ -133,6 +136,9 @@ def configure_args(self):
|
||||||
if '+shared' in spec:
|
if '+shared' in spec:
|
||||||
config_args.append('-Duseshrplib')
|
config_args.append('-Duseshrplib')
|
||||||
|
|
||||||
|
if '+threads' in spec:
|
||||||
|
config_args.append('-Dusethreads')
|
||||||
|
|
||||||
return config_args
|
return config_args
|
||||||
|
|
||||||
def configure(self, spec, prefix):
|
def configure(self, spec, prefix):
|
||||||
|
|
Loading…
Reference in a new issue