Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 631352

Summary: media-video/ffmpeg ebuilds do not respect -fno-lto
Product: Gentoo Linux Reporter: Shane Peelar <lookatyouhacker>
Component: Current packagesAssignee: media-video herd <media-video>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Shane Peelar 2017-09-18 21:07:02 UTC
In https://bugs.gentoo.org/566282 , the ebuilds for media-video/ffmpeg were amended to support LTO.  Unfortunately, they do not respect the -fno-lto flag, particularly if your CFLAGS/CXXFLAGS contain "-flto -fno-lto" -- it will build with "--enable-lto" regardless.

A comment on that bug report suggested a fix: https://bugs.gentoo.org/566282#c6

I have tested this fix on my own overlay and it appears to work as intended.  I can submit patches to fix the ebuilds using this if desired.

Thank you for your time,
Shane Peelar
Comment 1 Shane Peelar 2017-09-22 12:19:43 UTC
PR created: https://github.com/gentoo/gentoo/pull/5766