From df5a4ff151620e9c05c7683dbe4997394dcbe25e Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 7 Sep 2023 11:31:24 +0200 Subject: [PATCH] dnsdist: Only compile and link doh.cc when h2o support is enabled --- pdns/dnsdistdist/Makefile.am | 3 ++- pdns/dnsdistdist/doh.cc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pdns/dnsdistdist/Makefile.am b/pdns/dnsdistdist/Makefile.am index 0c07520108..47686dedf0 100644 --- a/pdns/dnsdistdist/Makefile.am +++ b/pdns/dnsdistdist/Makefile.am @@ -207,7 +207,7 @@ dnsdist_SOURCES = \ dnsparser.hh dnsparser.cc \ dnstap.cc dnstap.hh \ dnswriter.cc dnswriter.hh \ - doh.hh doh.cc \ + doh.hh \ dolog.hh \ ednscookies.cc ednscookies.hh \ ednsoptions.cc ednsoptions.hh \ @@ -424,6 +424,7 @@ dnsdist_LDADD += -lgnutls endif if HAVE_LIBH2OEVLOOP +dnsdist_SOURCES += doh.cc dnsdist_LDADD += $(LIBH2OEVLOOP_LIBS) endif diff --git a/pdns/dnsdistdist/doh.cc b/pdns/dnsdistdist/doh.cc index 3111274e26..8a9f5fef2a 100644 --- a/pdns/dnsdistdist/doh.cc +++ b/pdns/dnsdistdist/doh.cc @@ -1731,4 +1731,4 @@ void H2ODOHFrontend::setup() } #endif /* HAVE_LIBH2OEVLOOP */ -#endif /* HAVE_LIBH2OEVLOOP */ +#endif /* HAVE_DNS_OVER_HTTPS */ -- 2.47.2