diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-10-06 18:29:16 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-09 19:04:02 +0100 |
commit | 4d960984c360da7f74368b5e4cb912168690e872 (patch) | |
tree | 129db7838bdd13f27fa726074ac7f40b9c249181 | |
parent | 7a3cfd235b7434df5e9cdcbb5267ae6c618c1726 (diff) | |
download | poky-4d960984c360da7f74368b5e4cb912168690e872.tar.gz |
ffmpeg: use bfd linker always for x86 target
gold crashes when linking, so use bfd linker here, another option is to
use --disable-asm but then we loose performance.
(From OE-Core rev: 4015f3279aaced1c5d9ae8a6e666c9fba42558df)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_4.0.2.bb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_4.0.2.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_4.0.2.bb index 58f58fc5c8..7d1af04047 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_4.0.2.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_4.0.2.bb | |||
@@ -117,6 +117,10 @@ EXTRA_OECONF = " \ | |||
117 | " | 117 | " |
118 | 118 | ||
119 | EXTRA_OECONF_append_linux-gnux32 = " --disable-asm" | 119 | EXTRA_OECONF_append_linux-gnux32 = " --disable-asm" |
120 | # gold crashes on x86, another solution is to --disable-asm but thats more hacky | ||
121 | # ld.gold: internal error in relocate_section, at ../../gold/i386.cc:3684 | ||
122 | |||
123 | LDFLAGS_append_x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" | ||
120 | 124 | ||
121 | do_configure() { | 125 | do_configure() { |
122 | ${S}/configure ${EXTRA_OECONF} | 126 | ${S}/configure ${EXTRA_OECONF} |