Skip to content

Commit

Permalink
media-video/ffmpeg: Pass --enable-lto to configure if -flto is in *FL…
Browse files Browse the repository at this point in the history
…AGS.

Fixes build with lto.
https://bugs.gentoo.org/show_bug.cgi?id=566282

Package-Manager: portage-2.2.26
Signed-off-by: Alexis Ballier <[email protected]>
  • Loading branch information
aballier committed Jan 5, 2016
1 parent 4fd3c94 commit caed356
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions media-video/ffmpeg/ffmpeg-2.8.4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ multilib_src_configure() {
break
done

# LTO support, bug #566282
is-flagq "-flto" && myconf+=( "--enable-lto" )

# Mandatory configuration
myconf=(
--enable-avfilter
Expand Down
3 changes: 3 additions & 0 deletions media-video/ffmpeg/ffmpeg-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,9 @@ multilib_src_configure() {
break
done

# LTO support, bug #566282
is-flagq "-flto" && myconf+=( "--enable-lto" )

# Mandatory configuration
myconf=(
--enable-avfilter
Expand Down

0 comments on commit caed356

Please sign in to comment.