media-video/ffmpeg: Pass disable optimization to configure.
authorAlexis Ballier <aballier@gentoo.org>
Tue, 27 Nov 2018 11:54:32 +0000 (12:54 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 27 Nov 2018 11:54:42 +0000 (12:54 +0100)
This is only useful for hardcoded CFLAGS. We use optflags that override them anyway. However, some configure checks run with fomit-frame-pointer when this is enabled.
This lures the build system it has enough registers to build some inline asm on x86 and then causes build failures.

Closes: https://bugs.gentoo.org/671746
Closes: https://bugs.gentoo.org/645778
Package-Manager: Portage-2.3.51, Repoman-2.3.12
RepoMan-Options: --force
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
media-video/ffmpeg/ffmpeg-4.1.ebuild
media-video/ffmpeg/ffmpeg-9999.ebuild

index 951667d5553ca5d2e157316a7fe9a95a60b0cf33..4b16f79189e497607577a7c12ed9db2f36106cc9 100644 (file)
@@ -405,6 +405,10 @@ multilib_src_configure() {
                --enable-avfilter
                --enable-avresample
                --disable-stripping
+               # This is only for hardcoded cflags; those are used in configure checks that may
+               # interfere with proper detections, bug #671746 and bug #645778
+               # We use optflags, so that overrides them anyway.
+               --disable-optimizations
                --disable-libcelt # bug #664158
                "${myconf[@]}"
        )
index ca3506a2918a057c7aa4e5a8d9216c927e803035..869c06071cf353ea8174e7c03342cac222ea6cc3 100644 (file)
@@ -404,6 +404,10 @@ multilib_src_configure() {
                --enable-avfilter
                --enable-avresample
                --disable-stripping
+               # This is only for hardcoded cflags; those are used in configure checks that may
+               # interfere with proper detections, bug #671746 and bug #645778
+               # We use optflags, so that overrides them anyway.
+               --disable-optimizations
                --disable-libcelt # bug #664158
                "${myconf[@]}"
        )