mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-13 20:05:35 +08:00
Update LinuxBuilder.php
This commit is contained in:
@@ -169,6 +169,12 @@ class LinuxBuilder extends BuilderBase
|
|||||||
shell()->cd(SOURCE_PATH . '/php-src')->exec('./buildconf --force');
|
shell()->cd(SOURCE_PATH . '/php-src')->exec('./buildconf --force');
|
||||||
|
|
||||||
SourcePatcher::patchPHPConfigure($this);
|
SourcePatcher::patchPHPConfigure($this);
|
||||||
|
|
||||||
|
if ($this->getPHPVersionID() < 80000) {
|
||||||
|
$json_74 = '--enable-json ';
|
||||||
|
} else {
|
||||||
|
$json_74 = '';
|
||||||
|
}
|
||||||
|
|
||||||
shell()->cd(SOURCE_PATH . '/php-src')
|
shell()->cd(SOURCE_PATH . '/php-src')
|
||||||
->exec(
|
->exec(
|
||||||
@@ -182,6 +188,7 @@ class LinuxBuilder extends BuilderBase
|
|||||||
'--disable-phpdbg ' .
|
'--disable-phpdbg ' .
|
||||||
'--enable-cli ' .
|
'--enable-cli ' .
|
||||||
'--enable-fpm ' .
|
'--enable-fpm ' .
|
||||||
|
$json_74 .
|
||||||
'--enable-micro=all-static ' .
|
'--enable-micro=all-static ' .
|
||||||
($this->zts ? '--enable-zts' : '') . ' ' .
|
($this->zts ? '--enable-zts' : '') . ' ' .
|
||||||
$this->makeExtensionArgs() . ' ' .
|
$this->makeExtensionArgs() . ' ' .
|
||||||
|
|||||||
Reference in New Issue
Block a user