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.
Created attachment 190364 [details]
Make app-text/bact respect user set CXXFLAGS and LDFLAGS, this also fixes bug #243718
Created attachment 190368 [details, diff]
die on emake failure
Created attachment 190412 [details, diff]
Respect user set CXXFLAGS and LDFLAGS, die on dobin, dodoc and dohtml failure, and add RDEPEND. This also fixes bug #243718
thx Espen, fixed.