PKGNAME=bind
PKGSEC=net
PKGDEP="openssl libidn2 libxml2 nghttp2 jemalloc gnupg libuv krb5 lmdb json-c \
        libmaxminddb fstrm protobuf-c liburcu"
PKGPROV="dnsutils dig nslookup"
# Manual pages
BUILDDEP="libxslt"
PKGDES="Internet Domain Name Server (from ISC)"

ABTYPE=autotools
AUTOTOOLS_AFTER=(
        "PYTHON=/usr/bin/python3"
        "--sysconfdir=/etc/named"
        "--enable-shared"
        "--disable-static"
        "--with-gssapi=yes"
        "--with-libidn2"
        "--with-json-c"
        "--with-lmdb"
        "--with-gnu-ld"
        "--with-maxminddb"
        "--with-pic"
        "--enable-fixed-rrset"
        "--enable-full-report"
        "--enable-dnstap"
        "--enable-dnsrps"
        "--enable-year2038"
        "--enable-auto-validation"
)

# FIXME: issue encountered during LTO:
# /tmp/ccNvORJp.s: Assembler messages:
# /tmp/ccNvORJp.s:257: Error: selected processor does not support `yield' in ARM mode
# /tmp/ccNvORJp.s:356: Error: selected processor does not support `yield' in ARM mode
# /tmp/ccNvORJp.s:379: Error: selected processor does not support `yield' in ARM mode
# /tmp/ccNvORJp.s:390: Error: selected processor does not support `yield' in ARM mode
# make[6]: *** [/tmp/ccYe2rXP.mk:14: /tmp/ccrcrFnj.ltrans6.ltrans.o] Error 1
# make[6]: *** Waiting for unfinished jobs....
NOLTO__ARMV4=1
# Needed by Afterglow, whereas FAIL_ARCH defaults to mainline-only.
FAIL_ARCH="!(mainline|retro)"
