Skip to content

Commit

Permalink
Merge pull request #295 from jingjingxyk/experiment_v4.8.x
Browse files Browse the repository at this point in the history
update pgsql config
  • Loading branch information
jingjingxyk authored Jul 27, 2023
2 parents 73f2d54 + 64e89ca commit caa64c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sapi/src/builder/library/pgsql.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
$pgsql_prefix = PGSQL_PREFIX;
$option = '';

$ldflags = $p->getOsType() == 'macos' ? "" : ' -static ';
$ldflags = $p->getOsType() == 'macos' ? '' : ' -static ';

if ($p->getOsType() == 'macos') {
$option = '--disable-thread-safety';
}
Expand All @@ -33,6 +34,8 @@
# 121行 替换内容
sed -i.backup "s/invokes exit\'; exit 1;/invokes exit\';/" ../src/interfaces/libpq/Makefile
sed -i.backup "293 s/^/#$/" ../src/Makefile.shlib
sed -i.backup "441 s/^/#$/" ../src/Makefile.shlib
# 静态链接方法二:
# 102行,整行替换
Expand Down

0 comments on commit caa64c8

Please sign in to comment.