summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2016-01-05 09:26:56 +0100
committerAlexis Ballier <aballier@gentoo.org>2016-01-05 09:27:02 +0100
commitcaed356beda25dacd829f7988c2b8b1011583111 (patch)
tree8716ece750e1983b69fda9df9d2016244cff107c /media-video
parentmedia-video/mkvtoolnix: bump to 8.7.0 (diff)
downloadgentoo-caed356beda25dacd829f7988c2b8b1011583111.tar.gz
gentoo-caed356beda25dacd829f7988c2b8b1011583111.tar.bz2
gentoo-caed356beda25dacd829f7988c2b8b1011583111.zip
media-video/ffmpeg: Pass --enable-lto to configure if -flto is in *FLAGS.
Fixes build with lto. https://bugs.gentoo.org/show_bug.cgi?id=566282 Package-Manager: portage-2.2.26 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r--media-video/ffmpeg/ffmpeg-2.8.4.ebuild3
-rw-r--r--media-video/ffmpeg/ffmpeg-9999.ebuild3
2 files changed, 6 insertions, 0 deletions
diff --git a/media-video/ffmpeg/ffmpeg-2.8.4.ebuild b/media-video/ffmpeg/ffmpeg-2.8.4.ebuild
index 912ed82350de..efc3bc99680f 100644
--- a/media-video/ffmpeg/ffmpeg-2.8.4.ebuild
+++ b/media-video/ffmpeg/ffmpeg-2.8.4.ebuild
@@ -375,6 +375,9 @@ multilib_src_configure() {
break
done
+ # LTO support, bug #566282
+ is-flagq "-flto" && myconf+=( "--enable-lto" )
+
# Mandatory configuration
myconf=(
--enable-avfilter
diff --git a/media-video/ffmpeg/ffmpeg-9999.ebuild b/media-video/ffmpeg/ffmpeg-9999.ebuild
index 1bd2c89bd572..2918e4bd7cab 100644
--- a/media-video/ffmpeg/ffmpeg-9999.ebuild
+++ b/media-video/ffmpeg/ffmpeg-9999.ebuild
@@ -391,6 +391,9 @@ multilib_src_configure() {
break
done
+ # LTO support, bug #566282
+ is-flagq "-flto" && myconf+=( "--enable-lto" )
+
# Mandatory configuration
myconf=(
--enable-avfilter