Add the 'shared' variant for protobuf. (#3703)
This commit is contained in:
parent
f166f57f09
commit
3ad6754c1a
1 changed files with 11 additions and 0 deletions
|
@ -40,3 +40,14 @@ class Protobuf(AutotoolsPackage):
|
||||||
depends_on('autoconf', type='build')
|
depends_on('autoconf', type='build')
|
||||||
depends_on('libtool', type='build')
|
depends_on('libtool', type='build')
|
||||||
depends_on('m4', type='build')
|
depends_on('m4', type='build')
|
||||||
|
|
||||||
|
variant('shared', default=True, description='Build shared libraries.')
|
||||||
|
|
||||||
|
def configure_args(self):
|
||||||
|
if '+shared' in self.spec:
|
||||||
|
return ['--enable-shared=yes',
|
||||||
|
'--enable-static=no']
|
||||||
|
else:
|
||||||
|
return ['--enable-shared=no',
|
||||||
|
'--enable-static=yes',
|
||||||
|
'--with-pic=yes']
|
||||||
|
|
Loading…
Reference in a new issue