1
0
mirror of https://github.com/openresty/openresty synced 2024-11-09 18:35:51 +01:00

tests: dist-check: added support for OPENSSL_PREFIX for using a different openssl installation.

This commit is contained in:
Yichun Zhang (agentzh) 2018-04-19 15:04:24 -07:00
parent 5d0235ea71
commit 4e202252f4

@ -45,6 +45,13 @@ if ($^O eq 'darwin') {
. "-I/usr/local/opt/pcre/include/'"
. " --with-ld-opt='-L/usr/local/opt/openssl/lib/ "
. "-L/usr/local/opt/pcre/lib/'";
} else {
my $ssl_prefix = $ENV{OPENSSL_PREFIX};
if (defined $ssl_prefix) {
$cfg_opts .= " --with-cc-opt='-I$ssl_prefix/include/' "
. " --with-ld-opt='-L$ssl_prefix/lib/' ";
}
}
my $prefix;