Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pkgs/openssl/openssl.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extends: [autotools_package]

dependencies:
build: [zlib]
build: [pkg-config, zlib]

sources:
- url: https://www.openssl.org/source/openssl-1.0.1g.tar.gz
Expand Down Expand Up @@ -46,3 +46,7 @@ build_stages:
bash: |
#./config --prefix=$ARTIFACT shared zlib-dynamic -I$ZLIB_DIR/include -Wl,-rpath=$ARTIFACT/lib -Wl,-rpath=$ZLIB_DIR/lib
./Configure --prefix=$ARTIFACT shared zlib-dynamic -I$ZLIB_DIR/include darwin64-x86_64-cc enable-ec_nistp-64_gcc_128

when_build_dependency:
- prepend_path: PKG_CONFIG_PATH
value: '${ARTIFACT}/lib/pkgconfig'
8 changes: 8 additions & 0 deletions pkgs/petsc/petsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ def configure(ctx, stage_args):
# must explicitly set --with-debugging=0 to disable debugging
conf_lines.append('--with-debugging=%d' % stage_args['debug'])

# Special case, openssl provides ssl
if 'OPENSSL' in ctx.dependency_dir_vars:
conf_lines.append('--with-ssl=1')
conf_lines.append('--with-ssl-dir=${OPENSSL_DIR}')
else:
# Disable ssl when not a dependency
conf_lines.append('--with-ssl=0')

# Special case, --with-blas-dir does not work with OpenBLAS
if 'OPENBLAS' in ctx.dependency_dir_vars:
if ctx.parameters['platform'] == 'Darwin':
Expand Down