From: David Barksdale Date: Mon, 20 Feb 2017 23:50:55 +0000 (-0600) Subject: Don't put POSTGRESQL_CPPFLAGS in CFLAGS X-Git-Tag: taler-0.2.1~118 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=24b8e62f2ed410ad5320f7cd1cace020fbaeb179;p=oweals%2Fgnunet.git Don't put POSTGRESQL_CPPFLAGS in CFLAGS --- diff --git a/configure.ac b/configure.ac index dc9eabbc4..b31d0a6c7 100644 --- a/configure.ac +++ b/configure.ac @@ -811,13 +811,15 @@ AM_CONDITIONAL(HAVE_SQLITE, test x$sqlite = xtrue) AC_SUBST(SQLITE_CPPFLAGS) AC_SUBST(SQLITE_LDFLAGS) +LDFLAGS=$SAVE_LDFLAGS +CPPFLAGS=$SAVE_CPPFLAGS + # test for postgres postgres=false # even running the check for postgres breaks emscripten ... if test "$taler_only" != yes; then AX_LIB_POSTGRESQL([]) if test "$found_postgresql" = "yes"; then - CFLAGS="$CFLAGS $POSTGRESQL_CPPFLAGS" CPPFLAGS="$CPPFLAGS $POSTGRESQL_CPPFLAGS" AC_CHECK_HEADERS([libpq-fe.h], postgres=true) diff --git a/src/psycstore/Makefile.am b/src/psycstore/Makefile.am index 07c019e1d..a342c06e6 100644 --- a/src/psycstore/Makefile.am +++ b/src/psycstore/Makefile.am @@ -94,7 +94,10 @@ libgnunet_plugin_psycstore_postgres_la_LIBADD = \ $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \ $(LTLIBINTL) libgnunet_plugin_psycstore_postgres_la_LDFLAGS = \ - $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS) + $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS) +libgnunet_plugin_psycstore_postgres_la_CPPFLAGS = \ + $(POSTGRESQL_CPPFLAGS) $(AM_CPPFLAGS) + libgnunet_plugin_psycstore_sqlite_la_SOURCES = \ plugin_psycstore_sqlite.c