The build system for rbldnsd is hand-written. While we were already
passing CC to the "emake" command, it turns out that the ./configure
script checks for it as well. Thus it was possible for src_configure()
to fail if the ./configure script couldn't guess which compiler
wouldn't be used anyway. Whee. Fixed by passing the same CC that emake
will use to ./configure, too.
Closes: https://bugs.gentoo.org/718888
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
src_configure() {
# The ./configure file is handwritten and doesn't support a `make
# install` target, so there are no --prefix options. The econf
- # function appends those automatically, so we can't use it.
- ./configure \
+ # function appends those automatically, so we can't use it. We
+ # Have to set $CC here, too (and not just in the call to emake),
+ # because the ./configure script checks for it.
+ CC="$(tc-getCC)" ./configure \
$(use_enable ipv6) \
$(use_enable zlib) \
|| die "./configure failed"