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.
Can not reproduce the problem. See tests below. How do you test that, Diego?
> emerge --info
> emerge 7plus
>>> Compiling source in /var/tmp/portage/app-text/7plus-2.25/work/7plsrc.225 ...
i686-pc-linux-gnu-gcc -c -O2 -mtune=athlon-4 -Wall 7plus.c
i686-pc-linux-gnu-gcc -c -O2 -mtune=athlon-4 -Wall encode.c
> CFLAGS="will_not_compile" emerge 7plus
i686-pc-linux-gnu-gcc -c will_not_compile -Wall 7plus.c
i686-pc-linux-gnu-gcc -c will_not_compile -Wall encode.c
i686-pc-linux-gnu-gcc: will_not_compile: No such file or directory
Created attachment 167646 [details]
patch to fix CFLAGS ignoring and pre-strip problem wrt bug 240108
Thanks to Diego's clarification in http://blog.flameeyes.eu/2008/10/08/more-notes-about-the-flags-testing I found the problem.
Attached patch fixes the problem by sed'ing 'CFLAGS =' into 'CFLAGS +=' in the Makefile.
Be careful as the patch is a cumulative one, which fixes also the pre-strip problem from Bug 240108.
03 Jan 2009; Mike Pagano <email@example.com> 7plus-2.25.ebuild:
Fix for respecting CFLAGS bug #240125 and prestriping binaries bug #240108.
Patch submitted by Thomas Beierlein. Thank-you, Thomas.