Skip to content

Commit 354b50d

Browse files
committed
Only build petsc with ssl when openssl is set as a dependency.
1 parent c1ebd86 commit 354b50d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pkgs/petsc/petsc.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ def configure(ctx, stage_args):
6969
# must explicitly set --with-debugging=0 to disable debugging
7070
conf_lines.append('--with-debugging=%d' % stage_args['debug'])
7171

72+
# Special case, openssl provides ssl
73+
if 'OPENSSL' in ctx.dependency_dir_vars:
74+
conf_lines.append('--with-ssl=1')
75+
conf_lines.append('--with-ssl-dir=${OPENSSL_DIR}')
76+
else:
77+
# Disable ssl when not a dependency
78+
conf_lines.append('--with-ssl=0')
79+
7280
# Special case, --with-blas-dir does not work with OpenBLAS
7381
if 'OPENBLAS' in ctx.dependency_dir_vars:
7482
if ctx.parameters['platform'] == 'Darwin':

0 commit comments

Comments
 (0)