File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11extends : [autotools_package]
22
33dependencies :
4- build : [zlib]
4+ build : [pkg-config, zlib]
55
66sources :
77 - url : https://www.openssl.org/source/openssl-1.0.1g.tar.gz
@@ -46,3 +46,7 @@ build_stages:
4646 bash : |
4747 #./config --prefix=$ARTIFACT shared zlib-dynamic -I$ZLIB_DIR/include -Wl,-rpath=$ARTIFACT/lib -Wl,-rpath=$ZLIB_DIR/lib
4848 ./Configure --prefix=$ARTIFACT shared zlib-dynamic -I$ZLIB_DIR/include darwin64-x86_64-cc enable-ec_nistp-64_gcc_128
49+
50+ when_build_dependency :
51+ - prepend_path : PKG_CONFIG_PATH
52+ value : ' ${ARTIFACT}/lib/pkgconfig'
Original file line number Diff line number Diff 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' :
You can’t perform that action at this time.
0 commit comments