mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
pgsql 禁用 依赖libzstd icu库
This commit is contained in:
parent
78c1484570
commit
fa17a48483
@ -388,11 +388,9 @@
|
|||||||
"lib-depends": [
|
"lib-depends": [
|
||||||
"libiconv",
|
"libiconv",
|
||||||
"libxml2",
|
"libxml2",
|
||||||
"zstd",
|
|
||||||
"openssl",
|
"openssl",
|
||||||
"zlib",
|
"zlib",
|
||||||
"readline",
|
"readline"
|
||||||
"icu"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"pthreads4w": {
|
"pthreads4w": {
|
||||||
|
|||||||
@ -20,7 +20,7 @@ trait postgresql
|
|||||||
$builddir = BUILD_ROOT_PATH;
|
$builddir = BUILD_ROOT_PATH;
|
||||||
$env = $this->builder->configure_env;
|
$env = $this->builder->configure_env;
|
||||||
$envs = $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);
|
$output = shell()->execWithResult($env . ' pkg-config --cflags-only-I --static ' . $packages);
|
||||||
if (!empty($output[1][0])) {
|
if (!empty($output[1][0])) {
|
||||||
@ -30,7 +30,7 @@ trait postgresql
|
|||||||
$output = shell()->execWithResult($env . ' pkg-config --libs-only-L --static ' . $packages);
|
$output = shell()->execWithResult($env . ' pkg-config --libs-only-L --static ' . $packages);
|
||||||
if (!empty($output[1][0])) {
|
if (!empty($output[1][0])) {
|
||||||
$ldflags = $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);
|
$output = shell()->execWithResult($env . ' pkg-config --libs-only-l --static ' . $packages);
|
||||||
if (!empty($output[1][0])) {
|
if (!empty($output[1][0])) {
|
||||||
@ -73,7 +73,7 @@ EOF
|
|||||||
--with-libxml \\
|
--with-libxml \\
|
||||||
--without-libxslt \\
|
--without-libxslt \\
|
||||||
--without-lz4 \\
|
--without-lz4 \\
|
||||||
--with-zstd \\
|
--without-zstd \\
|
||||||
--without-perl \\
|
--without-perl \\
|
||||||
--without-python \\
|
--without-python \\
|
||||||
--without-pam \\
|
--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/backend/libpq install');
|
||||||
shell()->cd($this->source_dir . '/build')->exec($envs . ' make -C src/interfaces/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(
|
shell()->cd($this->source_dir . '/build')->exec(
|
||||||
<<<EOF
|
<<<EOF
|
||||||
rm -rf {$builddir}/lib/*.so.*
|
rm -rf {$builddir}/lib/*.so.*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user