The cmocka component introduced as a unit test framework in BIND 9.16
series does not link correctly if LDFLAGS include -Wl,-O1. It can be
triggered directly, or via any pkg-config dependencies that includes
that in LDFLAGS.
This does not fix other QA errors already present, just disables
building cmocka as the testing is already disabled in the ebuild.
Closes: https://bugs.gentoo.org/710840
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
S="${WORKDIR}/${MY_P}"
# bug 479092, requires networking
+# bug 710840, cmocka fails LDFLAGS='-Wl,-O1'
RESTRICT="test"
pkg_setup() {
--enable-full-report
--without-readline
--with-openssl="${EPREFIX}"/usr
+ --without-cmocka
$(use_enable caps linux-caps)
$(use_enable dnsrps)
$(use_enable dnstap)