media-video/ffmpeg: Pass --enable-lto to configure if -flto is in *FLAGS.
authorAlexis Ballier <aballier@gentoo.org>
Tue, 5 Jan 2016 08:26:56 +0000 (09:26 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 5 Jan 2016 08:27:02 +0000 (09:27 +0100)
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>
media-video/ffmpeg/ffmpeg-2.8.4.ebuild
media-video/ffmpeg/ffmpeg-9999.ebuild

index 912ed82350def1b90a044115cc8332a6afcbde68..efc3bc99680f500adf96f8b8024617bf56fccc3e 100644 (file)
@@ -375,6 +375,9 @@ multilib_src_configure() {
                break
        done
 
+       # LTO support, bug #566282
+       is-flagq "-flto" && myconf+=( "--enable-lto" )
+
        # Mandatory configuration
        myconf=(
                --enable-avfilter
index 1bd2c89bd57269000ad72dbf3f1f5fd9c2e09007..2918e4bd7cab92a2a21f2c4b6489fd1b798a2349 100644 (file)
@@ -391,6 +391,9 @@ multilib_src_configure() {
                break
        done
 
+       # LTO support, bug #566282
+       is-flagq "-flto" && myconf+=( "--enable-lto" )
+
        # Mandatory configuration
        myconf=(
                --enable-avfilter