commit:     5072324b32ed1d584560f027ba1491d126224f4a
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  6 10:18:15 2016 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Wed Jan  6 10:18:15 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5072324b

media-video/ffmpeg: set optflags to CFLAGS.

Avoids e.g. having -march detection override user settings. Bug #567776.

Package-Manager: portage-2.2.26
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>

 media-video/ffmpeg/ffmpeg-2.8.4.ebuild | 2 +-
 media-video/ffmpeg/ffmpeg-9999.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/media-video/ffmpeg/ffmpeg-2.8.4.ebuild 
b/media-video/ffmpeg/ffmpeg-2.8.4.ebuild
index efc3bc9..3cb20b4 100644
--- a/media-video/ffmpeg/ffmpeg-2.8.4.ebuild
+++ b/media-video/ffmpeg/ffmpeg-2.8.4.ebuild
@@ -411,7 +411,7 @@ multilib_src_configure() {
                --cc="$(tc-getCC)" \
                --cxx="$(tc-getCXX)" \
                --ar="$(tc-getAR)" \
-               --optflags=" " \
+               --optflags="${CFLAGS}" \
                $(use_enable static-libs static) \
                "${myconf[@]}"
        echo "${@}"

diff --git a/media-video/ffmpeg/ffmpeg-9999.ebuild 
b/media-video/ffmpeg/ffmpeg-9999.ebuild
index 2918e4b..ef2f4d1 100644
--- a/media-video/ffmpeg/ffmpeg-9999.ebuild
+++ b/media-video/ffmpeg/ffmpeg-9999.ebuild
@@ -427,7 +427,7 @@ multilib_src_configure() {
                --cc="$(tc-getCC)" \
                --cxx="$(tc-getCXX)" \
                --ar="$(tc-getAR)" \
-               --optflags=" " \
+               --optflags="${CFLAGS}" \
                $(use_enable static-libs static) \
                "${myconf[@]}"
        echo "${@}"

Reply via email to