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:
parent
1057f59236
commit
534a357529
@ -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
|
||||
|
||||
|
10
postfix.spec
10
postfix.spec
@ -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" \
|
||||
|
Loading…
Reference in New Issue
Block a user