apr-util's ./configure script copies /usr/share/build-1/apr_rules.mk (from dev-libs/apr) to build/rules.mk and its Makefiles include the local copy of rules.mk. This rules.mk file sets the Makfile variables CFLAGS, LDFLAGS, and CPPFLAGS. This means that the environment variables will not be considered by make, so these variables need to be passed to emake. See to-be-attached patch for the fix. Fixing this QA violation (I'm pretty sure this is the case) benefits portage-multilib users. :-)
Created attachment 223481 [details] apr-util-1.3.9.ebuild-flags.patch Forces compilation process to respect the CFLAGS, LDFLAGS, and CPPFLAGS variable which build/rules.mk otherwise overrides. (build/rules.mk uses values the user had set at the installation time of dev-libs/apr).
+*apr-util-1.3.9-r1 (06 Aug 2010) + + 06 Aug 2010; Markos Chandras <hwoarang@gentoo.org> + +apr-util-1.3.9-r1.ebuild: + Respect {C,CXX,LD}FLAGS. Bug #309335. Thanks to Nathan Phillip Brink + <ohnobinki@ohnopublishing.net> for the patch +