update spx, works static and shared

This commit is contained in:
DubbleClick 2025-05-25 11:48:52 +07:00
parent 14ca782672
commit 234df8d11f
2 changed files with 2 additions and 2 deletions

View File

@ -859,7 +859,7 @@
"spx": {
"type": "git",
"rev": "master",
"url": "https://github.com/NoiseByNorthwest/php-spx.git",
"url": "https://github.com/henderkes/php-spx.git",
"path": "php-src/ext/spx",
"license": {
"type": "file",

View File

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