mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
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:
parent
c3b520c3d4
commit
625ee2703d
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user