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. Thanks, Diego
Created attachment 192231 [details, diff] Move includes out of CFLAGS, and respect LDFLAGS
Created attachment 192232 [details, diff] Respect CFLAGS and LDFLAGS
Created attachment 192233 [details, diff] Fix qa warning about implicit stclen declaration
Created attachment 192235 [details, diff] Respect CC, CFLAGS, LDFLAGS. Add unstated depend This also fixes bug #243730 and bug #270991. Also added a patch to fix QA warning about implicit strlen declaration.
Created attachment 192251 [details, diff] Move includes out of CFLAGS, and respect LDFLAGS
*** Bug 270991 has been marked as a duplicate of this bug. ***
Created attachment 192296 [details, diff] Respect CC, CFLAGS, LDFLAGS. Add unstated depend. This also fixes bug #243730 and bug #270991. Also added a patch to fix QA warning about implicit strlen declaration.
Fixed in 1.9.18-r1. I wrote my own Makefile patch, btw, which inherits the flags properly and also magically makes it build better in parallel. In CVS revision 1.2 of that ebuild, I also apply the include patch.