Skip to content

Commit e70a24f

Browse files
committed
更新pgsql 链接库顺序
1 parent db939df commit e70a24f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sapi/src/template/make.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@
244244
<?php if ($this->isLinux()) : ?>
245245
# 手动指定依赖库链接顺序
246246
<?php if ($this->hasLibrary('pgsql')) : ?>
247-
export LIBS="$LIBS -lcrypto -lssl -lpgcommon -lpgport -lpq"
247+
export LIBS="$LIBS -lcrypto -lssl -lpq -lpgcommon -lpgport "
248+
export LDFLAGS="$LDFLAGS <?= PGSQL_PREFIX ?>/lib/libpq.a <?= PGSQL_PREFIX ?>/lib/libpgcommon.a <?= PGSQL_PREFIX ?>/lib/libpgport.a "
248249
<?php endif; ?>
249250
<?php if ($this->hasExtension('phpy')) : ?>
250251
export LIBS="$LIBS -lcrypto -lssl -lmpdec -lmpdec++ -lbz2 -llzma -lHacl_Hash_SHA2 -lb2 -lexpat -lxml2 -lform -lmenu -ltic -lpanel -lncurses++ -lncurses "

0 commit comments

Comments
 (0)