From 9c2ea79beceb6086168f476b339fb1b9071d5dd0 Mon Sep 17 00:00:00 2001 From: jingjingxyk Date: Fri, 30 Jun 2023 21:00:49 +0800 Subject: [PATCH] update pgsql config --- src/SPC/builder/unix/library/postgresql.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/SPC/builder/unix/library/postgresql.php b/src/SPC/builder/unix/library/postgresql.php index 5fc19bef..3f48e7a9 100644 --- a/src/SPC/builder/unix/library/postgresql.php +++ b/src/SPC/builder/unix/library/postgresql.php @@ -18,20 +18,21 @@ trait postgresql { [$libdir, , $destdir] = SEPARATED_PATH; $builddir = BUILD_ROOT_PATH; - $envs = $this->builder->configure_env; + $env = $this->builder->configure_env; + $envs = $env; $packages = 'openssl zlib icu-uc icu-io icu-i18n readline libxml-2.0 libzstd'; - $output = shell()->execWithResult($envs . ' pkg-config --cflags-only-I --static ' . $packages); + $output = shell()->execWithResult($env . ' pkg-config --cflags-only-I --static ' . $packages); if (!empty($output[1][0])) { $cppflags = $output[1][0]; $envs .= " CPPFLAGS=\"{$cppflags}\""; } - $output = shell()->execWithResult($envs . ' pkg-config --libs-only-L --static ' . $packages); + $output = shell()->execWithResult($env . ' pkg-config --libs-only-L --static ' . $packages); if (!empty($output[1][0])) { $ldflags = $output[1][0]; $envs .= " LDFLAGS=\"{$ldflags}\" "; } - $output = shell()->execWithResult($envs . ' pkg-config --libs-only-l --static ' . $packages); + $output = shell()->execWithResult($env . ' pkg-config --libs-only-l --static ' . $packages); if (!empty($output[1][0])) { $libs = $output[1][0]; $envs .= " LIBS=\"{$libs}\" ";