I don't know the build system for this program (and this is a generic bug template so I cannot tell you which program exactly is), but my tests shows that it's not respecting CFLAGS properly.
Please look into it, since it's important to respect user CFLAGS.
Hello benchmark team,
I hope you don't mind me fixing this myself.
Please contact me if the fix itself needs any fix.
+*bonnie++-1.96-r1 (27 Sep 2010)
+ 27 Sep 2010; Sebastian Pipping <email@example.com>
+ +bonnie++-1.96-r1.ebuild, +files/bonnie++-1.96-compile-flags.patch:
+ Respect CFLAGS (bug #239951) and LDFLAGS (bug #337463)