mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
patch before make for uv
This commit is contained in:
parent
7d45415990
commit
be0b98c467
@ -21,7 +21,7 @@ class uv extends Extension
|
|||||||
|
|
||||||
public function patchBeforeSharedMake(): bool
|
public function patchBeforeSharedMake(): bool
|
||||||
{
|
{
|
||||||
if (SystemUtil::getLibcVersionIfExists() >= '2.17') {
|
if (PHP_OS_FAMILY !== 'Linux' || php_uname('m') !== 'aarch64' || SystemUtil::getLibcVersionIfExists() > '2.17') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
FileSystem::replaceFileRegex($this->source_dir . '/Makefile', '/^(LDFLAGS =.*)$/', '$1 -luv -ldl -lrt -pthread');
|
FileSystem::replaceFileRegex($this->source_dir . '/Makefile', '/^(LDFLAGS =.*)$/', '$1 -luv -ldl -lrt -pthread');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user