]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Dnsdist: Fix build failure on FreeBSD 3550/head
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 11 Mar 2016 10:57:05 +0000 (11:57 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 11 Mar 2016 10:57:05 +0000 (11:57 +0100)
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"

pdns/dnsdistdist/Makefile.am
pdns/dnsdistdist/configure.ac

index 5ba6f6ccd31168831f42081262969afcba9482f9..29ad0ae952674cb9d10c89c3b59626ee6062507c 100644 (file)
@@ -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
 
index e0c6e0aa0ec319b181f47767acb5b02052735644..9ac87555c3f65280fecdaa43ab5322bb2a198443 100644 (file)
@@ -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])