[build] PGSQL_CFLAGS with pkg-config for postgres (#2965)

build postgres modules with $(PGSQL_CFLAGS) in Makefile.am

x-ref:
  "pg_config is deprecated to build postgres client applications"
  https://redmine.lighttpd.net/issues/2965
personal/stbuehler/ci-build
Glenn Strauss 3 years ago
parent e790203a75
commit 5c3f439bcf
  1. 4
      src/Makefile.am

@ -209,7 +209,7 @@ lib_LTLIBRARIES += mod_vhostdb_pgsql.la
mod_vhostdb_pgsql_la_SOURCES = mod_vhostdb_pgsql.c
mod_vhostdb_pgsql_la_LDFLAGS = $(common_module_ldflags)
mod_vhostdb_pgsql_la_LIBADD = $(PGSQL_LIBS) $(common_libadd)
mod_vhostdb_pgsql_la_CPPFLAGS = $(PGSQL_INCLUDE)
mod_vhostdb_pgsql_la_CPPFLAGS = $(PGSQL_CFLAGS)
endif
if BUILD_WITH_DBI
@ -522,7 +522,7 @@ lighttpd_LDADD += $(MYSQL_LIBS)
endif
if BUILD_WITH_PGSQL
lighttpd_SOURCES += mod_vhostdb_pgsql.c
lighttpd_CPPFLAGS += $(PGSQL_INCLUDE)
lighttpd_CPPFLAGS += $(PGSQL_CFLAGS)
lighttpd_LDADD += $(PGSQL_LIBS)
endif
if BUILD_WITH_DBI

Loading…
Cancel
Save