From 4c56c9632698c7dd8f9bf25ed9cf237249080733 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Wed, 23 Jul 2025 13:16:23 +0700 Subject: [PATCH] lib-suggests: ldap was missing for curl --- config/lib.json | 3 ++- src/SPC/util/SPCConfigUtil.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/lib.json b/config/lib.json index 4bb73100..c712e088 100644 --- a/config/lib.json +++ b/config/lib.json @@ -89,7 +89,8 @@ "nghttp3", "ngtcp2", "zstd", - "libcares" + "libcares", + "ldap" ], "lib-suggests-windows": [ "brotli", diff --git a/src/SPC/util/SPCConfigUtil.php b/src/SPC/util/SPCConfigUtil.php index 1a8547e6..7a21a311 100644 --- a/src/SPC/util/SPCConfigUtil.php +++ b/src/SPC/util/SPCConfigUtil.php @@ -183,13 +183,14 @@ class SPCConfigUtil } $pkg_configs = implode(' ', $pkg_configs); if ($pkg_configs !== '') { + // static libs with dependencies come in reverse order, so reverse this too $pc_libs = array_reverse(PkgConfigUtil::getLibsArray($pkg_configs)); $lib_names = [...$lib_names, ...$pc_libs]; } } // post-process - $lib_names = array_unique(array_reverse(array_filter($lib_names, fn ($x) => $x !== ''))); + $lib_names = array_reverse(array_unique(array_filter($lib_names, fn ($x) => $x !== ''))); $frameworks = array_unique($frameworks); // process frameworks to short_name