Skip to content

Commit ae15d6c

Browse files
authored
fix postgresql libraries when --with-suggested-libs is false (#952)
2 parents b05bdcd + ff15973 commit ae15d6c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config/lib.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,8 @@
607607
},
608608
"libxml2": {
609609
"source": "libxml2",
610-
"static-libs-unix": [
611-
"libxml2.a"
610+
"pkg-configs": [
611+
"libxml-2.0"
612612
],
613613
"static-libs-windows": [
614614
"libxml2s.lib",

src/SPC/builder/unix/library/postgresql.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public function patchBeforeBuild(): bool
4545

4646
protected function build(): void
4747
{
48-
$libs = array_map(fn ($x) => $x->getName(), $this->getDependencies());
49-
$spc = new SPCConfigUtil($this->getBuilder(), ['no_php' => true, 'libs_only_deps' => true]);
48+
$libs = array_map(fn ($x) => $x->getName(), $this->getDependencies(true));
49+
$spc = new SPCConfigUtil($this->builder, ['no_php' => true, 'libs_only_deps' => true]);
5050
$config = $spc->config(libraries: $libs, include_suggest_lib: $this->builder->getOption('with-suggested-libs'));
5151

5252
$env_vars = [

0 commit comments

Comments
 (0)