From be0b98c467fe80658cca5b1c9888a20e0af3bf3a Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Fri, 20 Jun 2025 15:27:28 +0700 Subject: [PATCH] patch before make for uv --- src/SPC/builder/extension/uv.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SPC/builder/extension/uv.php b/src/SPC/builder/extension/uv.php index d3583fe2..d8755a89 100644 --- a/src/SPC/builder/extension/uv.php +++ b/src/SPC/builder/extension/uv.php @@ -21,7 +21,7 @@ class uv extends Extension public function patchBeforeSharedMake(): bool { - if (SystemUtil::getLibcVersionIfExists() >= '2.17') { + if (PHP_OS_FAMILY !== 'Linux' || php_uname('m') !== 'aarch64' || SystemUtil::getLibcVersionIfExists() > '2.17') { return false; } FileSystem::replaceFileRegex($this->source_dir . '/Makefile', '/^(LDFLAGS =.*)$/', '$1 -luv -ldl -lrt -pthread');