Skip to content

Commit 625ee27

Browse files
committed
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
1 parent c3b520c commit 625ee27

File tree

1 file changed

+7
-0
lines changed
  • src/SPC/builder/extension

1 file changed

+7
-0
lines changed

src/SPC/builder/extension/uv.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,11 @@ public function validate(): void
1616
throw new \RuntimeException('The latest uv extension requires PHP 8.0 or later');
1717
}
1818
}
19+
20+
public function getStaticAndSharedLibs(): array
21+
{
22+
[$static, $shared] = parent::getStaticAndSharedLibs();
23+
$shared .= ' -lpthread';
24+
return [$static, $shared];
25+
}
1926
}

0 commit comments

Comments
 (0)