diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-06-08 17:58:36 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-06-11 23:50:59 +0100 |
commit | 576ddf658de696b68bf136d550e9e68ab072552f (patch) | |
tree | a3ed8e8d75ec38ab3ffa953c0e4a9dae16f4e741 | |
parent | 6e02a83ac764d730f36cb32a2f4fcffd10120842 (diff) | |
download | poky-576ddf658de696b68bf136d550e9e68ab072552f.tar.gz |
ffmpeg: Link in libatomic on riscv32
It needs some functions from libatomic e.g.
libavformat/libavformat.so: undefined reference to `__atomic_fetch_sub_8'
(From OE-Core rev: d5e4a55f3d8ed79afca11cbeac6f9f478537a83b)
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.4.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb index 664fc6066a..3ed009bbb7 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb | |||
@@ -129,6 +129,7 @@ EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mips32r2', '--disable-mi | |||
129 | EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mips32r6', '--disable-mips64r2 --disable-mips32r2', '', d)}" | 129 | EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mips32r6', '--disable-mips64r2 --disable-mips32r2', '', d)}" |
130 | EXTRA_OECONF_append_mips = " --extra-libs=-latomic --disable-mips32r5 --disable-mipsdsp --disable-mipsdspr2 \ | 130 | EXTRA_OECONF_append_mips = " --extra-libs=-latomic --disable-mips32r5 --disable-mipsdsp --disable-mipsdspr2 \ |
131 | --disable-loongson2 --disable-loongson3 --disable-mmi --disable-msa --disable-msa2" | 131 | --disable-loongson2 --disable-loongson3 --disable-mmi --disable-msa --disable-msa2" |
132 | EXTRA_OECONF_append_riscv32 = " --extra-libs=-latomic" | ||
132 | 133 | ||
133 | # gold crashes on x86, another solution is to --disable-asm but thats more hacky | 134 | # gold crashes on x86, another solution is to --disable-asm but thats more hacky |
134 | # ld.gold: internal error in relocate_section, at ../../gold/i386.cc:3684 | 135 | # ld.gold: internal error in relocate_section, at ../../gold/i386.cc:3684 |