Ebuild passes --cpu= option to configure which in turn passes -march= option to compiler after user set options remember that last specified compiler option has highest priority. If user set -march=native configure converts it internally to e.g. -march=amdfam10 for phenom ii cpu and -march=amdfam10 is only subset of options enabled by -march=native. Reproducible: Always
Fix: ebuild converts -march=native to --cpu=host, then configure converts that to -march=amdfam10.
commit 5072324b32ed1d584560f027ba1491d126224f4a Author: Alexis Ballier <aballier@gentoo.org> Date: Wed Jan 6 11:18:15 2016 +0100 media-video/ffmpeg: set optflags to CFLAGS. Avoids e.g. having -march detection override user settings. Bug #567776. Package-Manager: portage-2.2.26 Signed-off-by: Alexis Ballier <aballier@gentoo.org> thx!