uv needs to explicitly link -lpthread on aarch64, fails to pthread_atfork unresolved otherwise. It's a symbols that's in the static library, but not in the shared library

This commit is contained in:
DubbleClick 2025-06-19 22:06:11 +07:00
parent c3b520c3d4
commit 625ee2703d

View File

@ -16,4 +16,11 @@ class uv extends Extension
throw new \RuntimeException('The latest uv extension requires PHP 8.0 or later');
}
}
public function getStaticAndSharedLibs(): array
{
[$static, $shared] = parent::getStaticAndSharedLibs();
$shared .= ' -lpthread';
return [$static, $shared];
}
}