mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 18:35:35 +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:
@@ -16,4 +16,11 @@ class uv extends Extension
|
|||||||
throw new \RuntimeException('The latest uv extension requires PHP 8.0 or later');
|
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];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user