Skip to content

Commit 4c56c96

Browse files
committed
lib-suggests: ldap was missing for curl
1 parent 42e2f6a commit 4c56c96

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

config/lib.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@
8989
"nghttp3",
9090
"ngtcp2",
9191
"zstd",
92-
"libcares"
92+
"libcares",
93+
"ldap"
9394
],
9495
"lib-suggests-windows": [
9596
"brotli",

src/SPC/util/SPCConfigUtil.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,14 @@ private function getLibsString(array $libraries, bool $use_short_libs = true): s
183183
}
184184
$pkg_configs = implode(' ', $pkg_configs);
185185
if ($pkg_configs !== '') {
186+
// static libs with dependencies come in reverse order, so reverse this too
186187
$pc_libs = array_reverse(PkgConfigUtil::getLibsArray($pkg_configs));
187188
$lib_names = [...$lib_names, ...$pc_libs];
188189
}
189190
}
190191

191192
// post-process
192-
$lib_names = array_unique(array_reverse(array_filter($lib_names, fn ($x) => $x !== '')));
193+
$lib_names = array_reverse(array_unique(array_filter($lib_names, fn ($x) => $x !== '')));
193194
$frameworks = array_unique($frameworks);
194195

195196
// process frameworks to short_name

0 commit comments

Comments
 (0)