Browse Source

update libpq build config

jingjingxyk 1 year ago
parent
commit
c7b3275a72
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/SPC/builder/unix/library/postgresql.php

+ 3 - 1
src/SPC/builder/unix/library/postgresql.php

@@ -57,7 +57,9 @@ trait postgresql
 
         # 有静态链接配置  参考文件: src/interfaces/libpq/Makefile
         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 "278 s/^/# /"  ../src/Makefile.shlib')
+            ->exec('sed -i.backup "402 s/^/# /"  ../src/Makefile.shlib');
 
         // configure
         shell()->cd($this->source_dir . '/build')