curl: add dependency on libidn2 (#17526)
If the system has libidn2 installed, then curl will use it. spack has a libidn2 package, so let's use that! Related: #16514
This commit is contained in:
parent
d56711f799
commit
0d4740d1b1
@ -52,6 +52,7 @@ class Curl(AutotoolsPackage):
|
||||
conflicts('platform=linux', when='+darwinssl')
|
||||
|
||||
depends_on('openssl', when='~darwinssl')
|
||||
depends_on('libidn2')
|
||||
depends_on('zlib')
|
||||
depends_on('nghttp2', when='+nghttp2')
|
||||
depends_on('libssh2', when='+libssh2')
|
||||
@ -62,6 +63,8 @@ def configure_args(self):
|
||||
spec = self.spec
|
||||
|
||||
args = ['--with-zlib={0}'.format(spec['zlib'].prefix)]
|
||||
args.append('--with-libidn2={0}'.format(spec['libidn2'].prefix))
|
||||
|
||||
if spec.satisfies('+darwinssl'):
|
||||
args.append('--with-darwinssl')
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user