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