curl: libs variant (#29865)

This commit is contained in:
Harmen Stoppels 2022-04-04 15:30:30 +02:00 committed by GitHub
parent d7aac3af24
commit 36c0a1eec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'):