Add without argon2 option

This commit is contained in:
crazywhalecc 2025-08-03 23:01:24 +08:00
parent 4cbe4ea82d
commit 81e7a0c554
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -30,6 +30,8 @@ class openssl extends Extension
$args = '--with-openssl=' . ($shared ? 'shared,' : '') . BUILD_ROOT_PATH . $openssl_dir;
if ($this->builder->getPHPVersionID() >= 80500 || !$this->builder->getOption('enable-zts')) {
$args .= ' --with-openssl-argon2 OPENSSL_LIBS="-lz"';
} else {
$args .= ' --without-openssl-argon2';
}
return $args;
}