mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
update spx, works static and shared
This commit is contained in:
parent
14ca782672
commit
234df8d11f
@ -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",
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user