The ALLOWED_FLAGS variable needs "mtune" included. Sparc has not the normal -march -mcpu combo. Instead it has -mcpu and -mtune. On sparc -mcpu does what -march does on x86 (Binary runs only on that cpu) and -mtune does what -mcpu does on x86 (Optimizes for a cpu but doesn't break compatibility) Bad and confusing but a fact Reproducible: Always Steps to Reproduce: 1.Emerge an ebuild with strip-flags. 2.Build process gets the needed mtune flag removed. Actual Results: Result is a generic unoptimized binary. Expected Results: strip-flags should not remove mtune. Just the same way as it allows mcpu and march on x86. The change needs to be done in: /usr/lib/portage/bin/extra_functions.sh - ALLOWED_FLAGS="-O -mcpu -march -pipe -g" + ALLOWED_FLAGS="-O -mcpu -march -mtune -pipe -g" Would be really good if it gets added before the sparc 1.4 release.
Just found out that it could be also be in "flag-o-matic.eclass". Don't know if the eclass or the extra_functions.sh is used.
done