Add missing libs for suggested option defined

This commit is contained in:
crazywhalecc 2025-10-13 00:21:13 +08:00
parent 903036f1c0
commit 6e79401ab5
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -45,7 +45,7 @@ trait postgresql
{
$libs = array_map(fn ($x) => $x->getName(), $this->getDependencies());
$spc = new SPCConfigUtil($this->getBuilder(), ['no_php' => true, 'libs_only_deps' => true]);
$config = $spc->config(libraries: $libs);
$config = $spc->config(libraries: $libs, include_suggest_lib: $this->builder->getOption('with-suggested-libs'));
$macos_15_bug_cflags = PHP_OS_FAMILY === 'Darwin' ? ' -Wno-unguarded-availability-new' : '';