mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
fix postgresql libraries when --with-suggested-libs is false (#952)
This commit is contained in:
commit
ae15d6c5f5
@ -607,8 +607,8 @@
|
|||||||
},
|
},
|
||||||
"libxml2": {
|
"libxml2": {
|
||||||
"source": "libxml2",
|
"source": "libxml2",
|
||||||
"static-libs-unix": [
|
"pkg-configs": [
|
||||||
"libxml2.a"
|
"libxml-2.0"
|
||||||
],
|
],
|
||||||
"static-libs-windows": [
|
"static-libs-windows": [
|
||||||
"libxml2s.lib",
|
"libxml2s.lib",
|
||||||
|
|||||||
@ -45,8 +45,8 @@ trait postgresql
|
|||||||
|
|
||||||
protected function build(): void
|
protected function build(): void
|
||||||
{
|
{
|
||||||
$libs = array_map(fn ($x) => $x->getName(), $this->getDependencies());
|
$libs = array_map(fn ($x) => $x->getName(), $this->getDependencies(true));
|
||||||
$spc = new SPCConfigUtil($this->getBuilder(), ['no_php' => true, 'libs_only_deps' => true]);
|
$spc = new SPCConfigUtil($this->builder, ['no_php' => true, 'libs_only_deps' => true]);
|
||||||
$config = $spc->config(libraries: $libs, include_suggest_lib: $this->builder->getOption('with-suggested-libs'));
|
$config = $spc->config(libraries: $libs, include_suggest_lib: $this->builder->getOption('with-suggested-libs'));
|
||||||
|
|
||||||
$env_vars = [
|
$env_vars = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user