https://bugs.gentoo.org/982745
--- a/buildrump.sh/src/tools/host-mkdep/Makefile
+++ b/buildrump.sh/src/tools/host-mkdep/Makefile
@@ -17,7 +17,7 @@
 # available at the time that host-mkdep is built.  The configure script
 # will try to find some other version of awk.
 #
-CONFIGURE_ENV=	CC=${HOST_CC:Q}
+CONFIGURE_ENV=	CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q}
 
 CONFIGURE_ARGS=	--cache-file=config.cache
 .if ${MAKEVERBOSE} == 0
