fixes on arch64

This commit is contained in:
DubbleClick 2025-05-25 18:03:07 +07:00
parent 3662e079ac
commit d833d8946c
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class amqp extends Extension
public function getUnixConfigureArg(bool $shared = false): string
{
return '--with-amqp --with-librabbitmq-dir=' . BUILD_ROOT_PATH;
return '--with-amqp' . ($shared ? '=shared' : '') . ' --with-librabbitmq-dir=' . BUILD_ROOT_PATH;
}
public function getWindowsConfigureArg($shared = false): string

View File

@ -13,7 +13,7 @@ class spx extends Extension
public function getUnixConfigureArg(bool $shared = false): string
{
$arg = '--enable-spx' . ($shared ? '=shared' : '');
if ($this->builder->getExt('zlib') === null) {
if ($this->builder->getLib('zlib') !== null) {
$arg .= ' --with-zlib-dir=' . BUILD_ROOT_PATH;
}
return $arg;