Unbreak the build with (non-default) DNSTAP option set. The root cause

here is that `kdig_CPPFLAGS += $(DNSTAP_CFLAGS)' line is missing from the
`src/Makefile.am' file (and thus pre-generated `src/Makefile.in') which
should contain "$libfstrm_CFLAGS $libprotobuf_c_CFLAGS" set by configure
script.

As I'd rather avoid patching `src/Makefile.in' and don't want to request
regeneration thereof, provide DNSTAP_CPPFLAGS explicitly for the moment,
while ideally this bug should be fixed upstream.  Add an accompanying XXX
comment about it.

PR:	203931 (partially)
This commit is contained in:
Alexey Dokuchaev 2015-10-22 14:57:42 +00:00
parent dd250ff253
commit 0f25be1a1e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=399986

View file

@ -50,6 +50,12 @@ OPTIONS_DEFINE= DNSTAP FASTPARSER IDN
DNSTAP_DESC= dnstap support (see dnstap.info) DNSTAP_DESC= dnstap support (see dnstap.info)
DNSTAP_CONFIGURE_ENABLE= dnstap DNSTAP_CONFIGURE_ENABLE= dnstap
DNSTAP_LIB_DEPENDS= libprotobuf-c.so:${PORTSDIR}/devel/protobuf-c DNSTAP_LIB_DEPENDS= libprotobuf-c.so:${PORTSDIR}/devel/protobuf-c
# XXX: because `kdig_CPPFLAGS += $(DNSTAP_CFLAGS)' line is missing from
# `src/Makefile.am' file (and thus pre-generated `src/Makefile.in') which
# should contain "$libfstrm_CFLAGS $libprotobuf_c_CFLAGS" set by configure
# script, provide it here explicitly as patching those files would result
# in higher line count. Ideally this bug should be fixed upstream.
DNSTAP_CPPFLAGS= -I${LOCALBASE}/include
FASTPARSER_DESC= Fast zone parser (demanding compilation) FASTPARSER_DESC= Fast zone parser (demanding compilation)
FASTPARSER_CONFIGURE_ENABLE= fastparser FASTPARSER_CONFIGURE_ENABLE= fastparser