SHA256
1
0
forked from pool/postfix

Accepting request 680558 from home:rmax:branches:server:mail

- PostrgeSQL's pg_config is meant for linking server extensions,
  use libpq's pkg-config instead, if available.
  This is needed to fix build with PostgreSQL 11.

OBS-URL: https://build.opensuse.org/request/show/680558
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=322
This commit is contained in:
Marcus Rückert 2019-03-04 14:41:12 +00:00 committed by Git OBS Bridge
parent 1057f59236
commit 534a357529
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 1 16:23:13 UTC 2019 - Reinhard Max <max@suse.com>
- PostrgeSQL's pg_config is meant for linking server extensions,
use libpq's pkg-config instead, if available.
This is needed to fix build with PostgreSQL 11.
-------------------------------------------------------------------
Thu Feb 7 18:22:14 UTC 2019 - chris@computersalat.de

View File

@ -207,11 +207,17 @@ else
export AUXLIBS="$AUXLIBS -lsasl2"
fi
#
set -x
export CCARGS="${CCARGS} -DHAS_MYSQL $(mysql_config --cflags)"
export AUXLIBS_MYSQL="$(mysql_config --libs)"
#
export CCARGS="${CCARGS} -DHAS_PGSQL -I$(pg_config --includedir)"
export AUXLIBS_PGSQL="-lpq"
if pkg-config libpq ; then
export CCARGS="${CCARGS} -DHAS_PGSQL $(pkg-config libpq --cflags)"
export AUXLIBS_PGSQL="$(pkg-config libpq --libs)"
else
export CCARGS="${CCARGS} -DHAS_PGSQL -I$(pg_config --includedir)"
export AUXLIBS_PGSQL="-lpq"
fi
#
%if %{with lmdb}
export CCARGS="${CCARGS} -DHAS_LMDB -I/usr/local/include" \