Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 567776 - media-video/ffmpeg overrides user-set -march=native
Summary: media-video/ffmpeg overrides user-set -march=native
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-08 13:49 UTC by om3i
Modified: 2016-01-06 10:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description om3i 2015-12-08 13:49:16 UTC
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
Comment 1 om3i 2015-12-08 13:51:19 UTC
Fix: ebuild converts -march=native to --cpu=host, then configure converts that to -march=amdfam10.
Comment 2 Alexis Ballier gentoo-dev 2016-01-06 10:18:44 UTC
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!