From: Ruben Kerkhof Date: Fri, 11 Mar 2016 10:57:05 +0000 (+0100) Subject: Dnsdist: Fix build failure on FreeBSD X-Git-Tag: dnsdist-1.0.0-beta1~128^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3550%2Fhead;p=thirdparty%2Fpdns.git Dnsdist: Fix build failure on FreeBSD YaHTTP needs Boost headers, and those are in /usr/local/include on FreeBSD. Append BOOST_CPPFLAGS to AM_CPPFLAGS in configure.ac, so every Makefile uses them. Also set the compiler flags globally, so that we compile yahttp with the same settings. Fixes "/reqresp.hpp:7:10: fatal error: 'boost/function.hpp' file not found" --- diff --git a/pdns/dnsdistdist/Makefile.am b/pdns/dnsdistdist/Makefile.am index 5ba6f6ccd3..29ad0ae952 100644 --- a/pdns/dnsdistdist/Makefile.am +++ b/pdns/dnsdistdist/Makefile.am @@ -1,4 +1,4 @@ -AM_CPPFLAGS = $(LUA_CFLAGS) $(LIBEDIT_CFLAGS) $(YAHTTP_CFLAGS) $(BOOST_CPPFLAGS) $(SANITIZER_FLAGS) -O3 -Wall -pthread -DSYSCONFDIR=\"${sysconfdir}\" +AM_CPPFLAGS += $(LUA_CFLAGS) $(LIBEDIT_CFLAGS) $(YAHTTP_CFLAGS) $(SANITIZER_FLAGS) -DSYSCONFDIR=\"${sysconfdir}\" ACLOCAL_AMFLAGS = -I m4 diff --git a/pdns/dnsdistdist/configure.ac b/pdns/dnsdistdist/configure.ac index e0c6e0aa0e..9ac87555c3 100644 --- a/pdns/dnsdistdist/configure.ac +++ b/pdns/dnsdistdist/configure.ac @@ -58,6 +58,10 @@ AS_IF([test "x$static" != "xyes"], [ ]) AC_SUBST([PROGRAM_LDFLAGS]) +AC_SUBST([AM_CPPFLAGS], + ["AS_ESCAPE([-I$(top_builddir) -I$(top_srcdir)]) -Wall -O3 -pthread $BOOST_CPPFLAGS"] +) + AC_CONFIG_FILES([Makefile ext/yahttp/Makefile ext/yahttp/yahttp/Makefile])