mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
fix macOS build libpng error with old option mode
This commit is contained in:
parent
3a2683bb0c
commit
4d227ca7ef
@ -35,7 +35,7 @@ class libpng extends MacOSLibraryBase
|
|||||||
*/
|
*/
|
||||||
protected function build(): void
|
protected function build(): void
|
||||||
{
|
{
|
||||||
$optimizations = match ($this->builder->getOption('arch')) {
|
$optimizations = match (php_uname('m')) {
|
||||||
'x86_64' => '--enable-intel-sse ',
|
'x86_64' => '--enable-intel-sse ',
|
||||||
'arm64' => '--enable-arm-neon ',
|
'arm64' => '--enable-arm-neon ',
|
||||||
default => '',
|
default => '',
|
||||||
@ -45,7 +45,7 @@ class libpng extends MacOSLibraryBase
|
|||||||
->exec('chmod +x ./install-sh')
|
->exec('chmod +x ./install-sh')
|
||||||
->exec(
|
->exec(
|
||||||
'./configure ' .
|
'./configure ' .
|
||||||
"--host={$this->builder->getOption('gnu-arch')}-apple-darwin " .
|
'--host=' . arch2gnu(php_uname('m')) . '-apple-darwin ' .
|
||||||
'--disable-shared ' .
|
'--disable-shared ' .
|
||||||
'--enable-static ' .
|
'--enable-static ' .
|
||||||
'--enable-hardware-optimizations ' .
|
'--enable-hardware-optimizations ' .
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user