From 65b0bd01c8c4114165d1ceec4228d7c198cdd973 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 23 Jul 2023 22:56:04 +0800 Subject: [PATCH] add auto-detect icu support for postgresql --- config/lib.json | 3 +++ src/SPC/builder/unix/library/postgresql.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/lib.json b/config/lib.json index 40422539..bc067ce1 100644 --- a/config/lib.json +++ b/config/lib.json @@ -391,6 +391,9 @@ "openssl", "zlib", "readline" + ], + "lib-suggests": [ + "icu" ] }, "pthreads4w": { diff --git a/src/SPC/builder/unix/library/postgresql.php b/src/SPC/builder/unix/library/postgresql.php index 87456f22..40b39c41 100644 --- a/src/SPC/builder/unix/library/postgresql.php +++ b/src/SPC/builder/unix/library/postgresql.php @@ -57,7 +57,7 @@ trait postgresql '--with-ssl=openssl ' . '--with-readline ' . '--with-libxml ' . - '--without-icu ' . + ($this->builder->getLib('icu') ? '--with-icu ' : '--without-icu ') . '--without-ldap ' . '--without-libxslt ' . '--without-lz4 ' .