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": { "spx": {
"type": "git", "type": "git",
"rev": "master", "rev": "master",
"url": "https://github.com/NoiseByNorthwest/php-spx.git", "url": "https://github.com/henderkes/php-spx.git",
"path": "php-src/ext/spx", "path": "php-src/ext/spx",
"license": { "license": {
"type": "file", "type": "file",

View File

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