pgsql 禁用 依赖libzstd icu库

This commit is contained in:
jingjingxyk 2023-07-01 17:31:46 +08:00
parent 78c1484570
commit fa17a48483
2 changed files with 4 additions and 24 deletions

View File

@ -388,11 +388,9 @@
"lib-depends": [
"libiconv",
"libxml2",
"zstd",
"openssl",
"zlib",
"readline",
"icu"
"readline"
]
},
"pthreads4w": {

View File

@ -20,7 +20,7 @@ trait postgresql
$builddir = BUILD_ROOT_PATH;
$env = $this->builder->configure_env;
$envs = $env;
$packages = 'openssl zlib icu-uc icu-io icu-i18n readline libxml-2.0 libzstd';
$packages = 'openssl zlib readline libxml-2.0 '; // icu-uc icu-io icu-i18n libzstd
$output = shell()->execWithResult($env . ' pkg-config --cflags-only-I --static ' . $packages);
if (!empty($output[1][0])) {
@ -30,7 +30,7 @@ trait postgresql
$output = shell()->execWithResult($env . ' pkg-config --libs-only-L --static ' . $packages);
if (!empty($output[1][0])) {
$ldflags = $output[1][0];
$envs .= " LDFLAGS=\"{$ldflags}\" ";
$envs .= " LDFLAGS=\"{$ldflags} -static\" ";
}
$output = shell()->execWithResult($env . ' pkg-config --libs-only-l --static ' . $packages);
if (!empty($output[1][0])) {
@ -73,7 +73,7 @@ EOF
--with-libxml \\
--without-libxslt \\
--without-lz4 \\
--with-zstd \\
--without-zstd \\
--without-perl \\
--without-python \\
--without-pam \\
@ -91,24 +91,6 @@ EOF
shell()->cd($this->source_dir . '/build')->exec($envs . ' make -C src/backend/libpq install');
shell()->cd($this->source_dir . '/build')->exec($envs . ' make -C src/interfaces/libpq install');
/*
shell()->cd($this->source_dir . '/build')->exec(
<<<'EOF'
make -C src/bin/pg_config install
make -C src/include install
make -C src/common install
make -C src/backend/port install
make -C src/port install
make -C src/backend/libpq install
make -C src/interfaces/libpq install
EOF
);
*/
shell()->cd($this->source_dir . '/build')->exec(
<<<EOF
rm -rf {$builddir}/lib/*.so.*