mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
upgrade libpq to v16.1
This commit is contained in:
parent
9dcda873f3
commit
1c307d0d59
@ -386,7 +386,7 @@
|
|||||||
},
|
},
|
||||||
"postgresql": {
|
"postgresql": {
|
||||||
"type": "url",
|
"type": "url",
|
||||||
"url": "https://ftp.postgresql.org/pub/source/v15.1/postgresql-15.1.tar.gz",
|
"url": "https://ftp.postgresql.org/pub/source/v16.1/postgresql-16.1.tar.gz",
|
||||||
"license": {
|
"license": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "COPYRIGHT"
|
"path": "COPYRIGHT"
|
||||||
|
|||||||
@ -57,9 +57,7 @@ trait postgresql
|
|||||||
|
|
||||||
# 有静态链接配置 参考文件: src/interfaces/libpq/Makefile
|
# 有静态链接配置 参考文件: src/interfaces/libpq/Makefile
|
||||||
shell()->cd($this->source_dir . '/build')
|
shell()->cd($this->source_dir . '/build')
|
||||||
->exec('sed -i.backup "s/invokes exit\'; exit 1;/invokes exit\';/" ../src/interfaces/libpq/Makefile')
|
->exec('sed -i.backup "s/invokes exit\'; exit 1;/invokes exit\';/" ../src/interfaces/libpq/Makefile');
|
||||||
->exec('sed -i.backup "293 s/^/#$/" ../src/Makefile.shlib')
|
|
||||||
->exec('sed -i.backup "441 s/^/#$/" ../src/Makefile.shlib');
|
|
||||||
|
|
||||||
// configure
|
// configure
|
||||||
shell()->cd($this->source_dir . '/build')
|
shell()->cd($this->source_dir . '/build')
|
||||||
@ -88,9 +86,7 @@ trait postgresql
|
|||||||
->exec($envs . ' make -C src/bin/pg_config install')
|
->exec($envs . ' make -C src/bin/pg_config install')
|
||||||
->exec($envs . ' make -C src/include install')
|
->exec($envs . ' make -C src/include install')
|
||||||
->exec($envs . ' make -C src/common install')
|
->exec($envs . ' make -C src/common install')
|
||||||
->exec($envs . ' make -C src/backend/port install')
|
|
||||||
->exec($envs . ' make -C src/port install')
|
->exec($envs . ' make -C src/port install')
|
||||||
->exec($envs . ' make -C src/backend/libpq install')
|
|
||||||
->exec($envs . ' make -C src/interfaces/libpq install');
|
->exec($envs . ' make -C src/interfaces/libpq install');
|
||||||
|
|
||||||
// remove dynamic libs
|
// remove dynamic libs
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user