From 24b8e62f2ed410ad5320f7cd1cace020fbaeb179 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Mon, 20 Feb 2017 17:50:55 -0600 Subject: [PATCH] Don't put POSTGRESQL_CPPFLAGS in CFLAGS --- configure.ac | 4 +++- src/psycstore/Makefile.am | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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 -- 2.25.1