curl: libs variant (#29865)
This commit is contained in:
parent
d7aac3af24
commit
36c0a1eec3
@ -80,6 +80,8 @@ class Curl(AutotoolsPackage):
|
|||||||
variant('librtmp', default=False, description='enable Rtmp support')
|
variant('librtmp', default=False, description='enable Rtmp support')
|
||||||
variant('ldap', default=False, description='enable ldap support')
|
variant('ldap', default=False, description='enable ldap support')
|
||||||
variant('libidn2', default=False, description='enable libidn2 support')
|
variant('libidn2', default=False, description='enable libidn2 support')
|
||||||
|
variant('libs', default='shared,static', values=('shared', 'static'),
|
||||||
|
multi=True, description='Build shared libs, static libs or both')
|
||||||
|
|
||||||
conflicts('+libssh', when='@:7.57')
|
conflicts('+libssh', when='@:7.57')
|
||||||
# on OSX and --with-ssh the configure steps fails with
|
# on OSX and --with-ssh the configure steps fails with
|
||||||
@ -150,6 +152,8 @@ def configure_args(self):
|
|||||||
'--without-zstd',
|
'--without-zstd',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
args += self.enable_or_disable('libs')
|
||||||
|
|
||||||
# Make gnutls / openssl decide what certs are trusted.
|
# Make gnutls / openssl decide what certs are trusted.
|
||||||
# TODO: certs for other tls options.
|
# TODO: certs for other tls options.
|
||||||
if spec.satisfies('tls=gnutls') or spec.satisfies('tls=openssl'):
|
if spec.satisfies('tls=gnutls') or spec.satisfies('tls=openssl'):
|
||||||
|
Loading…
Reference in New Issue
Block a user