]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Only compile and link doh.cc when h2o support is enabled 12678/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 7 Sep 2023 09:31:24 +0000 (11:31 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 7 Sep 2023 09:31:24 +0000 (11:31 +0200)
pdns/dnsdistdist/Makefile.am
pdns/dnsdistdist/doh.cc

index 0c07520108a94325287036ce25b822b02c309f4e..47686dedf0187e5aa0a89c57b0fa85f49c76b389 100644 (file)
@@ -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
 
index 3111274e26533bab4cb17e476b2f2184bbf2e0f9..8a9f5fef2ae5aca779009b78df6de5a91d7e95de 100644 (file)
@@ -1731,4 +1731,4 @@ void H2ODOHFrontend::setup()
 }
 
 #endif /* HAVE_LIBH2OEVLOOP */
-#endif /* HAVE_LIBH2OEVLOOP */
+#endif /* HAVE_DNS_OVER_HTTPS */