change dependency tracking

This commit is contained in:
DubbleClick
2025-07-26 11:13:29 +07:00
parent 70a9ffe4a2
commit 2cb1a95132
4 changed files with 12 additions and 21 deletions

View File

@@ -407,7 +407,12 @@ class Extension
*/
public function buildUnixShared(): void
{
$config = (new SPCConfigUtil($this->builder))->config([$this->getName()], array_map(fn ($l) => $l->getName(), $this->builder->getLibs()));
$config = (new SPCConfigUtil($this->builder))->config(
[$this->getName()],
array_map(fn ($l) => $l->getName(), $this->getLibraryDependencies(recursive: true)),
$this->builder->getOption('with-suggested-exts'),
$this->builder->getOption('with-suggested-libs'),
);
[$staticLibs, $sharedLibs] = $this->splitLibsIntoStaticAndShared($config['libs']);
$env = [
'CFLAGS' => $config['cflags'],