bind: set SDKROOT on 10.11 and 10.12 (#22962)

Fixes `configure: error: xml2-config returns badness`
This commit is contained in:
ilovezfs 2018-01-16 22:40:11 -08:00 committed by GitHub
parent b14e2e4296
commit d87ed47dde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,6 +17,11 @@ class Bind < Formula
depends_on "json-c" => :optional
def install
# Fix "configure: error: xml2-config returns badness"
if MacOS.version == :sierra || MacOS.version == :el_capitan
ENV["SDKROOT"] = MacOS.sdk_path
end
# enable DNSSEC signature chasing in dig
ENV["STD_CDEFINES"] = "-DDIG_SIGCHASE=1"