gcc_do_filter_flags is declared twice inside the .eclass, and in the second declaration there is a bug which comes down to this: if use amd64 || use x86 ; then setting="`get-flag mcpu`" [ ! -z "${setting}" ] && \ replace-flags -mcpu="${setting}" -mtune="${setting}" && \ ewarn "-mcpu is deprecated on your arch\a\a\a" && \ epause 5 fi unfortunately, this is used in the 3.3.5 ebuild which -doesnt- have the -mtune flag supported, which means that CFLAGS (and CXXFLAGS) get replaced from -mcpu to -mtune and then aren't filtered back... reproducible by: CFLAGS="-mcpu=i686 -O2" # CXXFLAGS <-- commented out. the check from the previous declaration of gcc_do_filter_flags needs to be incorporated later in the build as well. Reproducible: Always Steps to Reproduce: 1. 2. 3.
fixed in cvs, thanks.